Re: [PHP] the triple equal sign?
On Mon, Jul 16, 2001 at 04:36:54AM -0700, elias wrote: What is the '===' ? Please give me an example. ( == false) is true ( === false) is false re, tc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] the triple equal sign?
What is the '===' ? You can not only compare if the content of two variables is the same ($a == $b) - you can also compare the type (integer, float...) $a = 1; $b = 1; $a == $b - TRUE $a = 1; $b = 1; $a === $b - FALSE because $a is a STRING and $b is a INTEGER! -- phpArbeitsgruppe in Gruendung - Jochen Kaechelin Stuttgarter Str.3, D-73033 Goeppingen Tel. 07161-92 95 94, Fax 07161-92 95 98 http://www.php-arbeitsgruppe.de, mailto:[EMAIL PROTECTED]