Welcome to WebmasterWorld Guest from 23.20.184.141

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Are these the same?

     
9:27 am on Apr 18, 2005 (gmt 0)

Junior Member

10+ Year Member

joined:Dec 21, 2003
posts:41
votes: 0


Are these two statements exactly the same?

if (empty($bla)){
echo "this is empty"
}
&

if ($bla == ""){
echo "this is empty"
}

dcrombie

9:37 am on Apr 18, 2005 (gmt 0)

Inactive Member
Account Expired

 
 


The php site [php.net] explains it better than I could ;)
9:59 am on Apr 18, 2005 (gmt 0)

Junior Member

10+ Year Member

joined:Dec 21, 2003
posts:41
votes: 0


Oh Thanks,

You are dead right and from I can see there the answer has to be yes thaey are the same.

Cheers