Method equal()

Method equal

int equal(mixed a, mixed b)


This function checks if the values a and b are equivalent.


If either of the values is an object the (normalized) result of calling lfun::_equal() will be returned.

Returns 1 if both values are false (zero, destructed objects, prototype functions, etc).

Returns 0 (zero) if the values have different types.

Otherwise depending on the type of the values:


Returns the same as a == b.


The contents of a and b are checked recursively, and if all their contents are equal and in the same place, they are considered equal.

Note that for objects this case is only reached if neither a nor b implements lfun::_equal().


Returns (a <= b) && (b <= a).

See also

copy_value(), `==()