By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,254 Members | 1,713 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,254 IT Pros & Developers. It's quick & easy.

foreach and zero-arrays

P: n/a
Hi..
I get a warning whenever I foreach a zero-entry array.
Is there anyway around this without setting PHP debug levels lower?

Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
bi*******@gmail.com wrote:
I get a warning whenever I foreach a zero-entry array.
Is there anyway around this without setting PHP debug levels lower?


Check its size with sizeof() or count()

--
Chris Hope | www.electrictoolbox.com | www.linuxcdmall.com
Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.