Re: === and @
| From: | Erik Price | Date: | Mon, 24 Jun 2002 13:38:13 +0000 |
| Subject: | Re: === and @ | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-103578@lists.php.net to get a copy of this message | ||
On Sunday, June 23, 2002, at 10:46 PM, Phil Schwarzmann wrote:
What exactly happens when you put three equal-signs together instead of just one or two? I've seen this in other people's code, then search php.net and found nothing.PHP does dynamic typing. So the following returns TRUE if ("1" == 1) even though the first value is a string and the second value is an integer. You can force PHP to check for the same type by using three equal-signs, so that the above would return FALSE but either of the two below would return TRUE: if ("1" === "1") if (1 === 1)
Also, what happens when you put a @ thingy in front of a function? Does it surpress the errors?Yes. Erik ---- Erik Price Web Developer Temp Media Lab, H.H. Brown pricee@hhbrown.com