Re: Odd Code Error.
| From: | daniel at electroteque dot org | Date: | Thu, 22 Jan 2004 05:37:50 +0000 |
| Subject: | Re: Odd Code Error. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-175401@lists.php.net to get a copy of this message | ||
> Ok i found something very interesting
> , i have a session var setup to check for a groupID which is an
> integer,
>
> if ($_SESSION['groupID']==1) { this was working, then when i changed it
> to
>
> if ($_SESSION['groupID']===1) { per recomendation, it does not now ! i
> was going through my code and changing things, now i fear it may all
> break ?
>
I changed it to if ($_SESSION['groupID']==='1') { and it worked, why was
that, is what i did before bad practice ?