Re: Re: reference variables

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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??

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux