Re: strpos
| From: | Mike Migurski | Date: | Wed, 21 Jan 2004 20:37:43 +0000 |
| Subject: | Re: strpos | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-175334@lists.php.net to get a copy of this message | ||
>When I use the function bellow, and there is no occournce of the control
>word, strpos shoul return false, but instead i returns 1, which is not
>the intention. Does anybody here have an idea about what I am doing
>wring???
You're adding the one:
>$position = strpos($this->fileContent, "\\".$word, $position) + 1;
---------------------------------------------------------------------
michal migurski- contact info and pgp key:
sf/ca http://mike.teczno.com/contact.html