foreach (array as $item) { ⋮ process each $item }

2 replies
Hey guys

Here is the code of reference:

foreach (array as $item)
process each $item

What the hell is "" and what is the exit code for it because when I insert it right into my Dreamweaver it doesn't show up properly...
#⋮ #$item #array #foreach #process
  • Profile picture of the author Dan Grossman
    That's just part of a tutorial telling you that's a comment/instructions, not actual code

    You're supposed to put the code to process each $item in between the { and }, not copy that text
    Improvely: Built to track, test and optimize your marketing.

    {{ DiscussionBoard.errors[6905270].message }}
  • Profile picture of the author mesmsgs
    Go to php[dot]net/manual/fr/control-structures.foreach.php for more info
    {{ DiscussionBoard.errors[7077539].message }}

Trending Topics