Skip to the content
Documentation

evaluates to ..

No ratings yet

is there a list somewhere of what equals what ?
is an empty string equal to 0 or null or none ?
is undefined defined ?
what would be wise to use as a default for 'no value' ?

Comments (3 historical)

Written by readers of the earlier documentation sites, kept as they were.

  1. Re: evaluates to ..

    Arnaud Lafon ·

    {''|eq(0)}

    returns

    1 (i.e. true...)

  2. Re: evaluates to ..

    Adrien ·

    Use NULL for 'no value', it's there for that. (PHP haven't the distinction between "undefined" and "defined but void")