Return to Snippet

Revision: 62842
at March 16, 2013 01:38 by tasmanweb


Initial Code
function _empty($string){ 
		 $string = trim($string);
		 if(!is_numeric($string)) return empty($string);
		 return FALSE;
}

Initial URL

                                

Initial Description
a function to safely test for an empty string (or mixed variable) in cases when "0" is not intended to be empty

Initial Title
is_empty() : safely test for an empty string (or mixed variable)

Initial Tags

                                

Initial Language
PHP