Re: Odd Code Error.
| From: | Martin Hjort Eriksen | Date: | Thu, 22 Jan 2004 00:13:59 +0000 |
| Subject: | Re: Odd Code Error. | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-175366@lists.php.net to get a copy of this message | ||
daniel@electroteque.org wrote:
I dont understand, i assume that would check if name was set, i also set functions like function foo($name,$bar = null) { } so therefore bar doesnt need to be inputted, seeing as i set it to null would i check if $bar===true ? or just isset($bar ) ?when you have set $bar in that fashion then isset($bar) will come out as false. And $bar === true will only become true, if $bar is true, look at table K-3 here http://www.php.net/manual/en/types.comparisons.php /Martin