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
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: 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

Pull Requests

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 Dec 21 18:01:29 2024 UTC