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

by 2 replies
3
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...
#programming #⋮ #$item #array #foreach #process
  • 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
    • [ 1 ] Thanks
  • Go to php[dot]net/manual/fr/control-structures.foreach.php for more info

Next Topics on Trending Feed