Hi, Thursday, September 25, 2003, 3:18:19 PM, you wrote:
UST> Hello, UST> I am using strpos function for finding the string position in a UST> particular string .If the string value is equal to zero or greater UST> than zero some steps to be executed. If the position is empty it is taking UST> as zero value and executing the steps under equal to zero loop..Is there UST> any method avoid doing that ?? UST> Regards, UST> Uma You need to use if ($pos !== false) { //pos found } -- regards, Tom -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php