Re: PHP 4.0 Bug #6772 Updated: wrong documentaion for strrchr and strrpos
| From: | Tjabo Kloppenburg | Date: | Mon, 16 Oct 2000 11:47:37 +0000 |
| Subject: | Re: PHP 4.0 Bug #6772 Updated: wrong documentaion for strrchr and strrpos | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-35116@lists.php.net to get a copy of this message | ||
hi,
On Sun, Oct 15, 2000 at 12:16:25PM -0000, Bug Database wrote:
> ID: 6772
> Updated by: lyric
> Reported By: tjabo@unix-ag.org
> Status: Analyzed
> Bug Type: Documentation problem
> Assigned To:
> Comments:
>
> Which documentation are you using? The _body_ of the documentation for the functions
> you're talking about describes their return types correctly. (Yes, the one line summary is
> "find the last occurance of a char in a
> string", which is logically correct)
go to http://www.php.net/manual/ref.strings.php
and you'll see this:
...
strpos - Find position of first occurrence of a string
* strrchr - Find the last occurrence of a character in a string
str_repeat - Repeat a string
strrev - Reverse a string
* strrpos - Find position of last occurrence of a char in a
...
the text says "occurrence of a character" - but that's wrong.
Tjabo Kloppenburg.
--
www : http://www.taponet.de/
mobil: 0178 - 5 44 22 12