Wednesday, 31 December 2014

ucwords

Converts first character of each word in string to upper case
Example
<?php

echo ucwords("happy new year"); // print output Happy New Year?>


ucfirst

Its converts first character of string to upper case
Example
<?php

echo ucfirst("My StriNG"); // print output My string?>


lcfirst

convert first character of string to lower case
Example
<?php

echo lcfirst("My StriNG"); // print output my StriNG?>

strtoupper()

Its convert your string to Upper case 
Example
<?php

echo strtoupper("my sTring"); // print output MY STRING

?>

strtolower()

Its convert your string to lower case 
Example
<?php

echo strtolower("My StriNG"); // print output my string?>