Re: fns
| From: | Ignacio Vazquez-Abrams | Date: | Thu, 16 Nov 2000 00:24:29 +0000 |
| Subject: | Re: fns | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-25556@lists.php.net to get a copy of this message | ||
On Wed, 15 Nov 2000, Thomas Holton wrote:
>
> Hello,
>
> Is it true that one cannot call to a function within a function in PHP?
> I mean this:
>
> $result = &function1(&function2($input));
>
> thanks!
>
Huh? why do you have ampersands there? The following will work (assuming
argument count, input/output types, etc. are fine):
$result=function1(function2($input));
--
Ignacio Vazquez-Abrams <ignacio@openservices.net>