posted August 02, 2000 12:20 PM
So, your trying to count the number of times a string occurs in a string. I needed to do this a while ago.I got it to work by looping around until every instance as found. This wasnt very good though.
The bets way Ive used is to explode the string by the string and subtract one.
e.g.
$count = explode ($string1, $string2);
$count--;
Hope this helps
Sparky
"If Builders Built Buildings the way programmers programmed programs, the first woodpecker that came along would destroy civilisation"