php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #60245 strpos() has incorrect summary & description
Submitted: 2011-11-08 16:55 UTC Modified: 2011-11-08 18:07 UTC
From: grahambutler at gmail dot com Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: Irrelevant OS: n/a
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: grahambutler at gmail dot com
New email:
PHP Version: OS:

 

 [2011-11-08 16:55 UTC] grahambutler at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/function.strrpos#refsect1-function.strrpos-
description
---

In both the summary and description of strpos(), it is described as finding the 
LAST occurrence of $needle in $haystack, when it is the FIRST.

Regards
Graham


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-11-08 16:57 UTC] philip@php.net
You are reading the strrpos() documentation, as opposed to strpos().
 [2011-11-08 16:57 UTC] philip@php.net
-Status: Open +Status: Bogus
 [2011-11-08 17:14 UTC] grahambutler at gmail dot com
I'm an idiot.

Sorry :D
 [2011-11-08 18:07 UTC] philip@php.net
It happens to the best of us. :)
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sat Oct 10 18:00:02 2026 UTC