RE: [PHP] Use of Ampersand in php
| From: | Richard Correia | Date: | Mon, 23 Jan 2006 17:16:25 +0000 |
| Subject: | RE: [PHP] Use of Ampersand in php | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-229106@lists.php.net to get a copy of this message | ||
Hey,
Check out this example at famous http://www.weberdev.com
http://www.weberdev.com/get_example-3871.html
Let me know if you need more information.
Thanks,
Richard
-----Original Message-----
From: Nirmalya Lahiri [mailto:nirmalyalahiri@yahoo.com]
Sent: Monday, January 23, 2006 8:34 AM
To: php-general@lists.php.net
Subject: [PHP] Use of Ampersand in php
Hi everybody,
Can any one tell me, what is the use of ampersand '&' in php? Is it
a pointer operator like 'C' language? Kindly note the example....
<?php
$a=1;
$b=& $a;
$c=$a;
echo $b,$c;
?>
After running this example I got result 1 for both variable $b and
$c. Why so?
--Nirmalya