The below code uses strlen to show you how to check if a string is above 10 characters long.
<?php $a = "this is a sentence"; if (strlen($a) > 10) { echo $a; } ?>