Coding:
<?PHP //$space = "creatersite"; $space = trim(" hello ");//trim() is to remove space $letCount = strlen($space); print $letCount; ?>
In this Coding why we have to use trim function to remove the space between the letters
and characters $space = trim(" hello ");
We didn't use the trim function we can see that there is extra space before and after
the text take and count the length.$space = "creatersite";
Try this script
No comments:
Post a Comment