Re: About php String function
| From: | Tom Rogers | Date: | Thu, 25 Sep 2003 05:36:03 +0000 |
| Subject: | Re: About php String function | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-163853@lists.php.net to get a copy of this message | ||
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