php uppercase each word
$upperCaseSentance=ucwords("i do not feel good");//I Do Not Feel Good
php uppercase each word
$upperCaseSentance=ucwords("i do not feel good");//I Do Not Feel Good
first letter capital of every word in php
$clientname = "ankur prajapati";
ucwords($clientname);//Ankur Prajapati
ucfirst($clientname);//Ankur Prajapati
$clientname = "ANKUR PRAJAPATI";
ucfirst(strtolower($clientname));//Ankur Prajapati
php get first character of each word
if(!function_exists('get_avatar')){
function get_avatar($str){
$acronym;
$word;
$words = preg_split("/(\s|\-|\.)/", $str);
foreach($words as $w) {
$acronym .= substr($w,0,1);
}
$word = $word . $acronym ;
return $word;
}
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us