Re: references
| From: | Curt Zirzow | Date: | Tue, 22 Jul 2003 16:13:17 +0000 |
| Subject: | Re: references | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-156256@lists.php.net to get a copy of this message | ||
* Thus wrote Carl Furst (carl@vote.com):
> Ok lets see I have the following two functions one calls the other
>
> Function a (&$myref) {
>
> ..something... then calls function b
>
> b($myref);
>
> }
>
> function b (&$myref) {
>
> something
>
> }
>
> a($myref);
>
> is the reference by passing in function b legal???
Yes, and the $myref in the main context can be modified by the b()
function.
HTH,
Curt
--
"I used to think I was indecisive, but now I'm not so sure."