faqts : Computers : Programming : Languages : PHP

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

4 of 8 people (50%) answered Yes
Recently 4 of 8 people (50%) answered Yes

Entry

How to Fix Err: Variable passed to reset() is not an array or object.

Mar 19th, 2008 22:38
ha mo, Philip Olson, Gwendeline Liew,


If there is a question on whether the variable passed to reset() will 
be an array or not (I don't see why there would be...) use the 
is_array() function first.
  if (isset($variable) && is_array($variable)) {
      do_things_to_this_array($variable);
  }
http://www.tantofa.com
http://www.fantofa.com
http://www.mantofa.com
http://www.tanpola.com
http://www.tampola.com
http://www.yamot.com
http://www.mozmar.com
http://www.templatestemp.com