Thread: If, else and ==
View Single Post
Old 02-15-2008, 02:21 PM   #9 (permalink)
ReSpawN
The Frequenter
 
ReSpawN's Avatar
 
Join Date: Nov 2007
Location: Netherlands
Posts: 460
Thanks: 49
ReSpawN is on a distinguished road
Default

Quote:
Originally Posted by Kalle View Post
You might want to use empty() to check if a string is empty, it will consider 0 as empty though.

Else its looking good ;)
Why use a tremendous slow function (if used too much) if you can use if ($var == '') { continue; }.
__________________
"Life is a bitch, take that bitch on a ride"
Send a message via MSN to ReSpawN
ReSpawN is offline  
Reply With Quote