Jump to content


This topic is now archived and is closed to further replies.


I need help

Recommended Posts

Use substr_count($string,"Text to search for"). Example:

$count=substr_count('Phpfreaks rocks!','p');
echo $count;//outputs 2

Share this post

Link to post
Share on other sites


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.