Jump to content

[SOLVED] Simple Array Traversal


jaunty_mellifluous

Recommended Posts

try adding a closing brace to your for() statement.  it's a syntax error.  also, for the record, you would have an easier time using foreach().  if you need to use for() for whatever reason, you should put the count() statement out of the loop (and use a variable instead) since otherwise it has to run that function on every iteration.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.