Tekforums

Chat => Entertainment & Technology => Topic started by: Sam on January 08, 2010, 16:38:05 PM

Title: PHP help
Post by: Sam on January 08, 2010, 16:38:05 PM
Hi guys,

Just moved a site from a php4 server to php5 and now any calls to sizeof or count are returning 1 regardless. Used to work fine. Did they change something in between versions that I (as someone who never touches php) do not know about ?
Title: PHP help
Post by: Goblin on February 18, 2010, 18:58:26 PM
count() returns 1 even if its not an array. Is it possible there is something going wrong beforehand resulting in it not being an array?