On Sat, 16 Feb 2008 05:45:54 +0300, Jim Lucas <[EMAIL PROTECTED]> 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


--
-

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to