PHP substr_count() May 23, 2012 Pramod T P It counts the number of substring occurrences Example <?php echo substr_count(“phpcode. phpcodez”,”code”); ?> Output 2 Share this: Click to share on X (Opens in new window) X Click to share on Facebook (Opens in new window) Facebook Like Loading...