Answers for "upper case in each word php"

PHP
7

php uppercase each word

$upperCaseSentance=ucwords("i do not feel good");//I Do Not Feel Good
Posted by: Guest on July-30-2019
1

php uppercase with accent

<?php
function strtoupperWithAccents($string) {
   $string = strtoupper($string);
   $string = str_replace(
      array('é', 'è', 'ê', 'ë', 'à', 'â', 'î', 'ï', 'ô', 'ù', 'û'),
      array('É', 'È', 'Ê', 'Ë', 'À', 'Â', 'Î', 'Ï', 'Ô', 'Ù', 'Û'),
      $string
   );
   return $string;
}
Posted by: Guest on October-15-2021

Browse Popular Code Answers by Language