1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Use of & with () of function

Discussion in 'General PHP and MySQL Discussions' started by LPH, May 30, 2013.

  1. LPH

    LPH Well-Known Member

    Hi,

    I'm looking at a function within a plugin and there is an & prior to the $.

    PHP:
    function function_name(&$classObj .... 
    What does the & do? Is there a link for more information? I've been googling ... :(

    Update: I couldn't figure out if this was a typo or had a purpose. I removed the & and the plugin appears to still be working.
     
  2. Bob

    Bob Well-Known Member

    LPH likes this.
  3. LPH

    LPH Well-Known Member

    Thank you. Now I need to figure out if this was necessary.
     
  4. xf_phantom

    xf_phantom Well-Known Member

Share This Page