Bad example on site
| From: | Dan Brown | Date: | Fri, 07 Jul 2000 17:41:56 +0000 |
| Subject: | Bad example on site | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-1193@lists.php.net to get a copy of this message | ||
The example given for strpos in the manual (http://www.php.net/manual/function.strpos.php) is the opposite of what it should be.
Lines 3 and 9 should read "$pos = strpos ($mystring, "b");" not "$pos = strpos ("b", $mystring);"
The mistake on the page cost me about a half hour trying to figure out why my code wasn't working. Please fix so other don't have to suffer the same.
Thanks.
-Dan Brown