Re: [PHP4BETA] propose for bool -> string conversion:

From: Date: Fri, 02 Jul 1999 13:48:16 +0000
Subject: Re: [PHP4BETA] propose for bool -> string conversion:
References: 1 2  Groups: php.version4 
Request: Send a blank email to php-version4+get-1809@lists.php.net to get a copy of this message
On Fri, Jul 02, 1999 at 09:37:34AM -0400, Rasmus Lerdorf wrote: > > strpos has never worked in the case of the needle at the first > > (index 0) position. > > Sure it has. It has always worked and I use it all the time. eg. Then tell me the magic checks. Running function c($x) { if($x) echo "found\n"; else echo "not found\n"; } $string = "abc"; c(strpos($string,"a")); c(strpos($string,"z")); prints: not found not found -- Regards, Sascha Schumann Consultant

« previous php.version4 (#1809) next »