#23986 [Opn->Csd]: Feature request: Positions of occurences of substrings
ID: 23986
Updated by: mgf@php.net
Reported By: nigel dot pepper at certegy dot com
-Status: Open
+Status: Closed
Bug Type: Feature/Change Request
Operating System: Windows 2000
PHP Version: 4.3.1
New Comment:
Thank you for your bug report. This issue has already been fixed
in the latest released version of PHP, which you can download at
http://www.php.net/downloads.php
Please look at the PREG_OFFSET_CAPTURE flag in preg_match_all()
(http://www.php.net/preg-match-all), which was added in PHP 4.3.0.
Previous Comments:
------------------------------------------------------------------------
[2003-06-03 09:42:20] nigel dot pepper at certegy dot com
I've had to write my own function to do what I'd like but feel it would
be a useful addition to the PHP set.
I needed to extract the positions of all occurences of a tag <pc> in a
variable but was unable to find a suitable function.
I'm doing this in order to selectively apply the function ucfirst() to
a variable's content.
Advice would be much appreciated if there is a function which will do
this for me.
Cheers, Nigel :)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=23986&edit=1
Thread (2 messages)