Connecting Tech Pros Worldwide Forums | Help | Site Map

easy question

e.ellington@gmail.com
Guest
 
Posts: n/a
#1: Jan 25 '06
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?


Justin Koivisto
Guest
 
Posts: n/a
#2: Jan 25 '06

re: easy question


e.ellington@gmail.com wrote:[color=blue]
> 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?
>[/color]

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
Closed Thread