php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #758 3th optional argument for strpos (offset where to start searching)
Submitted: 1998-09-18 10:56 UTC Modified: 1998-10-10 21:21 UTC
From: thies at digicol dot de Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 3.0 Latest CVS OS: all
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: thies at digicol dot de
New email:
PHP Version: OS:

 

 [1998-09-18 10:56 UTC] thies at digicol dot de
i need to convert "normal-quotes" to  ?smart-quotes"  in some text-files that i display via php3.

i'd love to have an optional 3th parameter to strpos which gives it an offset where to start searching -
that way i can find the 1st match of a character change it and then strpos from there to the next occurance. if i have to "loop" over the text using a php for loop it is very slow.....

i'v created a patch that implements this, please mail me if you're interested.

tc


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-10-10 21:21 UTC] jim
Added in the latest CVS.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 27 00:01:30 2024 UTC