note 53701 deleted from function.empty by didou
| From: | didou@php.net | Date: | Sun, 18 May 2008 01:00:24 +0000 |
| Subject: | note 53701 deleted from function.empty by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-139492@lists.php.net to get a copy of this message | ||
Note Submitter: tan_niao
----
admin at prelogic dot net has wrote the following
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.
i think is said above that empty(trim($spaces)) dont work
,i think is better to seperate this two function
trim($spaces);
empty($spaces) thern continue with the code......