Skip to content

Instantly share code, notes, and snippets.

@mayomi1
Created August 30, 2017 20:05
Show Gist options
  • Save mayomi1/2cc1da57257dfbbf2cdfe1ee55ef2a9b to your computer and use it in GitHub Desktop.
Save mayomi1/2cc1da57257dfbbf2cdfe1ee55ef2a9b to your computer and use it in GitHub Desktop.
<?php
$x = dog
echo strlen($x);//this print the number of number of letters in the variable 
echo ucwords($X);//this converts the first character of each word in a string to uppercase
echo ucfirsts($x);//Converts the first character of a string to uppercase
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment