Connecting Tech Pros Worldwide Help | Site Map

easy question

  #1  
Old January 25th, 2006, 05:05 PM
e.ellington@gmail.com
Guest
 
Posts: n/a
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?

  #2  
Old January 25th, 2006, 05:15 PM
Justin Koivisto
Guest
 
Posts: n/a

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Easy Question ;-) How to render a html page in a table cell of an ASP.NET page SteveM answers 7 December 14th, 2006 10:32 PM
Converting a string to an int - Easy Question robert.b.walden@gmail.com answers 4 September 6th, 2006 02:25 PM
Very Easy Question, How to write log to SECURTY Event Log? Please help John answers 8 May 25th, 2006 05:35 PM
easy(?) question about cross referencing in XSLT Jeff Calico answers 3 January 23rd, 2006 05:35 PM
Easy question for all expert Ghislain Tanguay answers 13 November 21st, 2005 01:22 AM