Code:
<?php

$str1 = "Eating cat is not good for rat";
echo strlen($str1);