Use of Ampersand in php

From: Date: Mon, 23 Jan 2006 03:04:29 +0000
Subject: Use of Ampersand in php
Groups: php.general 
Request: Send a blank email to php-general+get-229053@lists.php.net to get a copy of this message
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 __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com

« previous php.general (#229053) next »