foreach
Posted: Sun Jul 04, 2004 4:59 pm
is there anyway to see if a foreach statement has no vars.
I am trying to avoid this:
Warning: Invalid argument supplied for foreach() in /home/theory/yada on line 59
I want to create a warning, like "There were no items selected" but my attempted have been for the no good.
kudos
I am trying to avoid this:
Warning: Invalid argument supplied for foreach() in /home/theory/yada on line 59
I want to create a warning, like "There were no items selected" but my attempted have been for the no good.
kudos