Quote:
Originally Posted by CrazY.
No, 0 don't is equal null. 0 is a integer number, null is nothing.
if ($test == null) // equal nothing
if ($test == 0) // equal integer
if (0 == null) // bool false
|
This is only (and often) true in languages that have dynamically typed variables, variables that can be any type and don't need to be defined as a specific type (e.g. Python, PHP, etc.). In my experience, these are also OO languages.
__________________