Closed Thread
Results 1 to 4 of 4

Thread: what is the usage of &$ ?

  1. #1
    yonghan is offline Learning Programmer
    Join Date
    May 2008
    Posts
    99
    Rep Power
    0

    what is the usage of &$ ?

    Hi all,i found out a code like this

    Code:
    while ($column $meta->fetch_field())
    {
    $bindVarArray[] = &$results[$column->name];

    I don't know what is the usage of & in front of $results for..Thanks a lot...

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Jordan Guest

    Re: what is the usage of &$ ?

    You are assigning that array value by reference.

    PHP: Spotting References - Manual

  4. #3
    Join Date
    Jul 2006
    Location
    Amherst, New York, United States
    Posts
    6,277
    Blog Entries
    26
    Rep Power
    20

    Re: what is the usage of &$ ?

    This is very useful if you are passing large arrays. If you do not pass the array by reference, you are creating another copy of the array in memory.

  5. #4
    yonghan is offline Learning Programmer
    Join Date
    May 2008
    Posts
    99
    Rep Power
    0

    Re: what is the usage of &$ ?

    Ok guys...Thanks a lot..

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. module usage
    By aaaain232 in forum PHP Development
    Replies: 5
    Last Post: 03-05-2009, 04:51 PM
  2. cpu temps/usage ?
    By wpervaiz in forum PHP Development
    Replies: 5
    Last Post: 10-10-2008, 10:22 PM
  3. Proxy usage
    By TcM in forum Computer Software/OS
    Replies: 2
    Last Post: 11-02-2006, 10:00 AM
  4. CPU usage!
    By TcM in forum Computer Hardware
    Replies: 10
    Last Post: 08-27-2006, 07:12 AM
  5. Acceptable CPU Usage
    By leon in forum PHP Development
    Replies: 2
    Last Post: 06-10-2006, 06:32 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts