if (!is_array($menu)) return false; PHP: somebody pls explain the meaning of the above line of code . what it actually does?
looks like it should be in a function. Basically, ! means not. is_array returns true if the variable is an array of variables. So, basically if the variable is not an array then return false as the value and again it should be in a function so the var return for the function would be false if the gave var is not an array.
Hey, exodus is right. It checks to see if the $menu variable is an array or not. There are other similar functions, the best place to get answers from is http://uk.php.net/manual/en/function.is-array.php (and the rest of PHP.net) everything is documented. Regards, Steve