Amazing array with reference

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
What do you think about the differences of the result between
uncomment line3 or not.

$girls = array('Army', 'Bitney', 'Sandy');
// $the2nd_girl = & $girls[1];    // line 3
$boys_lovers = $girls;
$boys_lovers[1] = 'no body';




Re: Amazing array with reference

Kimmo Laine wrote:
Quoted text here. Click to load it

Unless next_page.php generates PHP, the script with this include will
only get HTML.

Quoted text here. Click to load it


    if (isset($_GET['foo'])) {
      echo '<?php echo $_GET[\'foo\']; ?>';
    } else {
      echo '<?php echo \'Not available\'; ?>';

File not found: (R)esume, (R)etry, (R)erun, (R)eturn, (R)eboot

Site Timeline