Re: www. not working

From: Date: Sat, 16 Feb 2008 08:23:42 +0000
Subject: Re: www. not working
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-269402@lists.php.net to get a copy of this message
On Sat, 16 Feb 2008 05:45:54 +0300, Jim Lucas <lists@cmsws.com> wrote:
Valedol wrote:
just try "if ($POS !== 0) {"
well, that said, isn't the first position in a string 0 ? So, in the above example the OP would need // This would mean that www. was found any where in the string if ( $POS ) or // Would mean that www. was found at the beginning of the string if ( $POS === 0 ) sorry, that was bad idea
-- -

« previous php.general (#269402) next »