easy question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • e.ellington@gmail.com

    easy question

    I can't find this out by searching on google, php.net, etc. I am going
    over some php code and don't know to much. When using PEAR packages
    there is a lot of =& what does the equal and the ampersand mean in php?

  • Justin Koivisto

    #2
    Re: easy question

    e.ellington@gma il.com wrote:[color=blue]
    > I can't find this out by searching on google, php.net, etc. I am going
    > over some php code and don't know to much. When using PEAR packages
    > there is a lot of =& what does the equal and the ampersand mean in php?
    >[/color]

    Copy by reference... similar to a pointer in C

    <?php
    $a=1;
    $b =& $a;
    $b=5;

    echo $a; // results in 5
    ?>

    --
    Justin Koivisto, ZCE - justin@koivi.co m

    Comment

    Working...