NYCPHP Meetup

NYPHP.org

[nycphp-talk] What's going on here? PHP conditional.

David Sklar sklar at sklar.com
Fri Jul 2 11:33:08 EDT 2004


David Sklar wrote:

> When you compare two scalars of different types, the scalar on the right 
> hand side is converted into the type of the scalar on the left hand side.

Actually to be precise, I should say that when you compare a string and 
a number, the string is turned into a number, independent of who is on 
the right and who is on the left.

David





More information about the talk mailing list