#23986 [Opn->Csd]: Feature request: Positions of occurences of substrings

From: Date: Wed, 04 Jun 2003 09:48:05 +0000
Subject: #23986 [Opn->Csd]: Feature request: Positions of occurences of substrings
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-41122@lists.php.net to get a copy of this message
 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)

« previous php.bugs (#41122) next »