Here in this tutorial I explain PHP’s ability to manipulate text in terms of capitalization and replacing text. Also, you can count how many characters are in the text too!
Here are the sources used in this tutorial:
tut009.php
<?php $string = "today, I wAlked the dOg, and it was happy."; $name = "for the afternoon, I went and had a fun time."; $string = str_replace("dog","goat",$string); $string = str_replace(".","!",$string); echo $string; echo strlen($string); echo strtolower($string); echo ucfirst($name); ?>