Posted by Justin Koivisto on 01/25/06 19:08
e.ellington@gmail.com wrote:
> I can't find this out by searching on google, php.net, etc. I am going
> over some php code and don't know to much. When using PEAR packages
> there is a lot of =& what does the equal and the ampersand mean in php?
>
Copy by reference... similar to a pointer in C
<?php
$a=1;
$b =& $a;
$b=5;
echo $a; // results in 5
?>
--
Justin Koivisto, ZCE - justin@koivi.com
http://koivi.com
[Back to original message]
|