How to lowercase all string letters and uppercase the first letter in PHP

1 Answer

0 votes
$s = 'PHP Programming';

$s = ucfirst(strtolower($s));

echo $s;
 
/*
run:
  
Php programming
   
*/

 



answered Jan 25, 2017 by avibootz
...