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

Posted on    June-13-2011 4:24 AM

 1 Answer(s)
  2304  View(s)
Rate this:

Awadhendra Tiwari

Total Post:510

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.

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

Follow MindStick