This is a discussion on Amazing array with reference within the PHP Language forums, part of the PHP Programming Forums category; What do you think about the differences of the result between uncomment line3 or not. <?php $girls = array('Army', '...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
What do you think about the differences of the result between
uncomment line3 or not. <?php $girls = array('Army', 'Bitney', 'Sandy'); // $the2nd_girl = & $girls[1]; // line 3 $boys_lovers = $girls; $boys_lovers[1] = 'no body'; print_r($girls); print_r($boys_lovers); ?> :) |
|
|||
|
"Yarco" <yarco.w@gmail.com> wrote in message news:1192413615.624717.54370@y27g2000pre.googlegro ups.com... > What do you think about the differences of the result between > uncomment line3 or not. > > <?php > $girls = array('Army', 'Bitney', 'Sandy'); > // $the2nd_girl = & $girls[1]; // line 3 > $boys_lovers = $girls; i don't know...too busy laughing that the army could have been one of the boy's lovers! ;^) |