I have wrote this function: function issne($var) { return isset($var) && !empty($var) ? true : false; }
which can be called as: if (issne(&$mightbeundefinedvariable)) echo "using this variable"; is there is any builtin function that does that? (one function call). //Elias -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php