The === comparison operator.

with Ulysses sub forum
KBleivik
Site Admin
Posts: 178
Joined: Tue Sep 29, 2009 6:25 pm
Location: Moss Norway
Contact:

The === comparison operator.

Postby KBleivik » Mon Jun 13, 2011 11:06 pm

The php === comparison operator is not well known.

$a == $b Equal TRUE if $a is equal to $b after type juggling.

$a === $b Identical TRUE if $a is equal to $b, and they are of the same type. (introduced in PHP 4)

My bolding.

Source: http://de3.php.net/manual/en/language.o ... arison.php

See also an example: http://php.net/array_search

Related link: PHP and the great "===" operator

Return to “PHP 6 and later”

Who is online

Users browsing this forum: No registered users and 1 guest