PHP Insanity II
Mark Mzyk December 21, 2007
I have a feeling this might become a regular series. Today’s insanity is brought to you by the function intval. Let’s pull a quote straight from the php.net intval page: Intval returns: The integer value of var on success, or 0 on failure. Empty arrays and objects return 0, non-empty arrays and objects return 1. […]