Re: www. not working

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 16 Feb 2008 05:45:54 +0300, Jim Lucas <lists@xxxxxxxxx> 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



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux