Answers for "add space in string at capital letters php"

PHP
0

how to change uppercase to lowercase and spaces to _ in php

<?php print (str_replace(' ', '-', strtolower($blob))); ?>
Posted by: Guest on June-21-2021
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

Code answers related to "add space in string at capital letters php"

Browse Popular Code Answers by Language