Mega Code Archive

 
Categories / Php / Strings
 

Controlling Case

<?php   $submittedpass = "myPass";   $newpass = strtolower ($submittedpass);      echo $newpass . "<br />";      $astring = "hello world";   echo ucfirst ($astring) . "<br />";       $astring = "hello world";   echo ucwords ($astring);  ?>