count string within a string
| From: | Børge Holen | Date: | Fri, 17 Nov 2006 17:29:30 +0000 |
| Subject: | count string within a string | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-244819@lists.php.net to get a copy of this message | ||
I've figured out I need the substr_count function.
However, counting strings like this: [1] [2] [3] ... [215] ...
inside a large string element. damn.
The string got quite a few different numbers and keys but the main key is
alway within [] and is numeric.
I imagine I could use a $counter++.
I just dont see how I should aproach this.
Anyone got an Idea?
--
---
Børge
Kennel Arivene
http://www.arivene.net
---