Home > DeveloperSection > Interviews > Will comparison of string "10" and integer 11 work in PHP?
Awadhendra Tiwari

Total Post:510

Points:2550

Posted on    June-13-2011 4:24 AM

 PHP PHP 
Ratings:
 1 Answer(s)
  1325  View(s)
Rate this:

Awadhendra Tiwari

Total Post:510

Points:2550
Posted on    June-13-2011 12:00 AM

Yes, internally PHP will cast everything to the integer type, so numbers 10 and 11 will be compared.















Recent Activities

jayprakash sharma Created New Discussion what is short circuit operator in java   yesterday

Sumit Kesarwani added new Question What is the Vector class in java?   3 days ago

Anchal Kesharwani added new Blog JSON Syntax   10 days ago

Anchal Kesharwani added new Article How to Send Mail in Node.JS   10 days ago

Top Contributors

Don't want to miss updates? Please click the below button!