I need to count how many times the word AVAILABLE appears in a string
like this
$string ="AVAILABLE More Info AVAILABLE More Info";
 some time the string looks like this
$string ="UNAVAILABLE More Info AVAILABLE More Info";
 or
$string ="AVAILABLE More Info UNAVAILABLE More Info";
when I use
$srch="AVAILABLE";
$count=substr_count(strtolower($string), strtolower($srch));
echo $count;
it puts the count a 2 even when one of the words is UNAVAILABLE
how can I make it only count AVAILABLE and not UNAVAILABLE or visa
verse
-- 
Best regards,
 rdkurth                          mailto:[EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to