SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Enthusiast laresistance2's Avatar
    Join Date
    May 2011
    Posts
    86
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question How does PHP's list function work?

    Hello,

    I want to know how the list PHP function actually work under the hood?
    For example, the affection (=) with an array, etc..

    Can you also tell me how I can create a function such, please


    Thank you!

  2. #2
    Hosting Team Leader silver trophybronze trophy
    cpradio's Avatar
    Join Date
    Jun 2002
    Location
    Ohio
    Posts
    5,147
    Mentioned
    152 Post(s)
    Tagged
    0 Thread(s)
    I highly doubt this will be helpful, but here is the git location of where someone just recently implemented the use of list() within a foreach loop.
    http://git.php.net/?p=php-src.git;a=...d0a76a00#l6198

    Starts on line 6198.

  3. #3
    SitePoint Enthusiast laresistance2's Avatar
    Join Date
    May 2011
    Posts
    86
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Okay, but that does not answer my question.
    Do you have a clear explanation rather than watching a complicated file without any explanation.

    Thank you

  4. #4
    Keeper of the SFL StarLion's Avatar
    Join Date
    Feb 2006
    Location
    Atlanta, GA, USA
    Posts
    3,748
    Mentioned
    72 Post(s)
    Tagged
    0 Thread(s)
    Why are you interested in how it does it, if you arnt interested in the code that shows you how it does it?
    Never grow up. The instant you do, you lose all ability to imagine great things, for fear of reality crashing in.


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
  •