note 53657 deleted from function.empty by jome

From: Date: Tue, 10 Jan 2006 20:10:18 +0000
Subject: note 53657 deleted from function.empty by jome
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-101518@lists.php.net to get a copy of this message
Note Submitter: admin at prelogic dot net ---- In response to admin at ninthcircuit dot info The best way around that is the trim function. For example: $spaces = " "; if(empty(trim($spaces)){ echo "Omg empty string."; }else{ echo "Omg the string isnt empty!"; } Hope that helps anyone, though it is rather trivial.

« previous php.notes (#101518) next »