Equality and sameness in PHP

Equality in PHP is represented with two equal signs. For example number 7 will be equal to string “7”.

Being same is represented in PHP by three equal signs. Even so content of both instances are the same, however different types are being used, therefore result of this operation will be FALSE.

Comments

Popular posts from this blog

Absolute and relative path in HTML pages

Errors

goto PHP operator