How to lowercase all string letters and capitalize the first letter of each word in PHP

1 Answer

0 votes
$s = 'PHP programming LANGUAGE';

$s = ucwords(strtolower($s));

echo $s;
 
/*
run:
  
Php Programming Language
   
*/

 



answered Jan 26, 2017 by avibootz
...