Re: Re: reference variables
| From: | kranthi | Date: | Fri, 22 May 2009 13:14:55 +0000 |
| Subject: | Re: Re: reference variables | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-292940@lists.php.net to get a copy of this message | ||
thank you for the reply.
i had a small misunderstanding regarding variable reference...now its clear
but..
the output of
<?php
$x = 1;
$a1 = array(&$x);
var_dump($a1);
?>
is
array(1) {
[0]=> &int(1)
}
while for
<?php
$x = 1;
$a1 = array(&$x);
var_dump($a1[0]);
?>
it is
int(1)
can u tell me what & signifies here??