php substr_count example Example: substr_count php Click to copy<?php echo substr_count("Hello world. The world is nice","world"); ?>