Capitalize in php

//string to all uppercase
$string = "String with Mixed use of Uppercase and Lowercase";
//php string to uppercase
$string = strtoupper($string);
// = "STRING WITH MIXED USE OF UPPERCASE AND LOWERCASE"

3.67
3
Tom Thrower 115 points

                                    
<?php
$foo = 'hello world!';
$foo = ucfirst($foo);             // Hello world!

$bar = 'HELLO WORLD!';
$bar = ucfirst($bar);             // HELLO WORLD!
$bar = ucfirst(strtolower($bar)); // Hello world!
?>
// string manipulation function 

3.67 (3 Votes)
0
3.83
6

                                    ucfirst($myword);

3.83 (6 Votes)
0
3
1

                                    <?php
/* Convert the first character of "hello" to uppercase:  */
echo ucfirst("hello samy!");

//output : Hello samy!
?>

3 (1 Votes)
0
4.2
10
Amy L Lu 90 points

                                    
<?php
$foo = 'bonjour tout le monde!';
$foo = ucfirst($foo);             // Bonjour tout le monde!

$bar = 'BONJOUR TOUT LE MONDE!';
$bar = ucfirst($bar);             // BONJOUR TOUT LE MONDE!
$bar = ucfirst(strtolower($bar)); // Bonjour tout le monde!
?>

4.2 (10 Votes)
0
4.6
5

                                    $lowercase = "this is lower case";
$uppercase = strtoupper($lowercase);

echo $uppercase;

4.6 (5 Votes)
0
Are there any code examples left?
Create a Free Account
Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond.
Sign up
Develop soft skills on BrainApps
Complete the IQ Test
Relative searches
php convert to upper make firat letter upcase php replace uppercase with uppercase php capital letter in php tp upper php str upper all php php capitalize all php capitalizer capitalize( php php uppercase the first letter str replace lower to upper case php capitalize each word in php php lowercase uppercase what is work of ucfirst function in php uppercase all in php all letter in caps in php php capital case uppercase phhp ucfirst php meaning make capital of sentence in php uppercase character php ucfirst in php input VALUE str to capital letter in php php function return uppercase capitalise setters php php uppercaase contains uppercase php get uppercase php php str uppercase upper cas in php how to convert uppercase in php how to convert a text to all caps in php change to upper latter in php php array uppercase how to convert lowercase letters to uppercase in php change into lowercase php change string to lower case in php change first alphbet to upper case php change to uppercase php ignore lower case and upper case in php , just match the words in php how to convert string to all uppercase php convert a string into uppercase in php php string to caps to upper in php php to uppere php get all upper characters all upper case php capital first letter of each word in php php small letter to capital how to select word first letter and do it capital in php first letter capitalized php php string first case php only first letetr uuppercase php uppercase letter HOW TO UPPERCase string php target capital letters php decapitalize first letter php uncapitalize first letter php uppercase everything but first letter php php uppercase first middle capital letter php php convert to small case capitalize each words in php ucuppercase in php t converts the first letter to capital lette php TEXT TO UPERCASE PHP make first character uppercase php unppercase first latter php php uppercase firt letter php words capitalized capital first word php standardise to all caps display format php make first letter of each word capital php uppercase php varible capitalize php varible str caps php change string to uppercase php php convert upper php function to make string first letter capital ucfirst php 7 php string isupper php string is uppercase conver to uppercase php php to caps php capitalizw uppercase class php php conver a letter in upper cse php is upper case convert to Capital in php upercase function php change to uppercase in php to upper php how to convert word first letter capital php php first uppercase php change uppercase php upperase first word can i use capital PHP in php file syntax php lower to uppercase php initial caps capitalizing in php in can type both alphabets caps or small php make characters uppercase in php capital letters to / php array in uppercase in php php upper case first letter php everysecond letter of string uppercase php string replace capital letters into lowercase php string replace capital letters into small letters and underscore HOW TO MAKE CAPITAL LTTER TO FITST LATTER CAPITAL OTHER SMALL IN PHP start with capital sentence php php make string all uppercase class name with the first character in uppercase php upppercase in php php to uppercase word upper only first letter php make a string all caps php php capitalize all words convert capital letters php php set upercase php check if first letter is uppercase upper in php make every first letter capital php upper first letter php php first letter lowercase php upperacse make every first word capitalized php should i start a class with a capital letter in php ucfirst word in php ucfirstword in php proper heading capitalization php capitalizae text in php php variable in uppercase php variables in uppercase uppercase array php php convert capital letters to small first caps string php all caps string php capitalise a string php capitalize first letter of each word php string first letter capital php php capitalization uppercase lowercase in php change string from llowercase to capitallize php What function will change a string to every uppercase? php php add upper case on first letter str capital php transform all string to capitalize in php transform all string to uppercase in php php only first char uppercase php to string uppercase uconvert to upper case in php mpstring to uppercase php change to capital letters php php change first letter to uppercase php make text all uppercase lower to upper in php php uppercase array values php capitalize all letters php code standard capitalize How to check string is capitalized in php string is capitalized in php check if string is capitalized in php convert first letter of sentence to capital in php php evey first word caps how to convert lower case to upper case in php str tot upper php how to capitalize text in php capital string in php php string capitalize first letter of each word ucfirst word php put the first string in uppercase php transform a string all uppercase letters in php php get string uppercase uppercase only first letter php php remove from string and capitalize first letter php all caps function php all chars uppercase string upper in php uppcerCase in php php only first letter uppercase php first lette rto uppercase first char capital php convert text to capital php string to capital php how to make upperccase of string in php letters to capital in php first capital letter php fucntion character in capital letter in php uppercase character in php first letter uppercase and the rest lowercase in php how to do all caps in php convert word to uppercase in php variable to capital letters php upper function in php uppercase for words php string replace in php and transform to uppercase isupper php has uppercase php all caps in php STROPUPPER() PHP php lowercase first uppercase display uppercase php convert to capital letters php php array to uppercase how to covert word into capital letter in php capital in php starting letter uppercase in php string function to capitalize string in php php capitalize beginning of string convert lowercase to uppercase in php 1 st letter in capital in php sting to upper in php php + uppercase upper string vietnam php uc first in php all capital letter php php is uppercase all uppercapp php php all to uppercase uppercase first letter in each word php convert to upper case php Capital letters php php force caps string to all caps php string to all caps sibratided by underscore in php see upper and lower in a char php capital first latter in php php header turn to uppercase first chart upper php making a string uppercase in php php convert to uppercase uppertext php php first upper case php uppercase text str touppercase in php strtouppercase in php php string upper first letter change to small caps in php set all chars to uppercase php php convert string to capital letters to uppercase string php uppercase php to capitalize case php How to convert lowercase string to uppercase using PHP ? is upper in php upper to lowercase in php lowercase and uppercase together php uppercase to lover case php php convert variable to uppercase php capitalize first char echo uppercase php force uppercase in php php capitalise string php stirng upper php string to capitalize php code to convert lowercase to uppercase UPPER keywork in php php capital letter how to make all words caps in php conver all to all caps php php fierst uppercase php capitalise first letter of string only capilize and lowecase php str to upper and ucfirst in php print capital letters in php first letter in capital in php capital word all in php replace ext uppercase with lowercase php function to convert string in form to uppercase php uppercase the first letter php text uppercase in php ' text touppercase in php ' php set first letter capital php text to uppercase caps php convert text to uppercse in php caps format php how to set capital letter to the first letter in a tag li php php make all values in array uppercase php array make uppercase function to uppercase the first letter php all capital php php convert uppercase to lowercase str to letter capital in php text capitalize in php php string all caps upparcase php converto uppercase php lowercase to uppercase in php make string capital php php string upper php code to replace lowercase to uppercase php uppercase full strinf php change string to uppercase topupper php transform uppercase php convert first character to uppercase in PHP make the first letter of every word capital php str to upper in php string uppercase word php php upper casae str to first letter uppercase in php upper and lower case in php php capitalize text php value to upper case upcase php php first letter capital each word capital words in php php text transform uppercase lower to uppercase in php take capital letter in php php change text case php string all uppercase caps in php all caps php function to upper case php str uppercase php uppercase php string change character to capital php uppercase first letter of each word php use php all small capital letters use php small capital letters php first capital how ot uppercase string in php how to first letter capital in php make string uppercase php upper and lower case character php upper case first word php all letter to capital php array uppercase letter php array uppercase php how to echo uppercase in php first letter upper in php php make string uppercase how to upper case in php php str to upper case how to string in upper case in php how to show all text in uppercase in php first case capital php php neglect uppercase php functions to capital first letter to capital php php convert string to uppercase why uppercase variable in php how to convert array elements to uppercase in php how to make string uppercase in php php uppercase in string capitalize the first letter of the text in php php to capitalize why use uppercase for php query ucfirstwords in php php convert to all caps php change case all caps convert all letter to capital php convert first letter to uppercase in php uppercase first latter php make upper case php php capitalize first letter of each word uppercase first letter of string php php upperwase upper character in php how to convert string to uppercase in php all caps php function to convert a string to uppercase in php upper case in php. php str all caps upper function of php make every first letter capital in php first character uppercase in php php uppercase first letter of each word php all caps strtotoupper php php text uppercase all uppercase in php how to make a word upper case in php php to first to upper php str_upper uppercase all letters in php capital string php php strtoupper first character php is ucfirst a method uppercase a string php convert all to uppercase php convert name from small letter to capital in php php string first letter capital php convert to capital letters fungsi php upper how to lowercase first letter php ustrupper php convert to uppercase php all words capital php php make text capitalize php make text uppercase convert any uppercase to capitalize in php convert uppercase to capitalize in php str_upper php change string to uppercase in php php uppercase all words php caps letter php lowercase to uppercase php lower case to upper case php data to uppercase change from all caps to sentence case in php upper first character php php convert string first letter uppercase convert into capital letters in php uppercase string php how to convert text to uppercase in php php uppercase accent uppercase to sentance case in php convert string to all caps php php uppercase function convert string uppercase php php string function uppercase php array function uppercase php str to upper first char uppercase php php changing work to uppercase php string firts letter upper text uppercase php is php in all caps or not php convert string from all caps to capitalized php toupper PHP string only uppercase letters to uppercase php how to capitalize string in php variable in upper case in php uppercase n php make sentence first letter uppercase other lower case php php touppercasse str upper php php small caps function php ucfirst all words string to change capital letters in php convert string to uppercase in php php string to upper php make uppercase to capital in php php uppercase first letter of line capitalize first letter in string in php php capital upppercase php Tto upper php php to upercase php first letter uppercase rest lowercase php lowercase first letter upper string php php capilatixe first letter in string upper case string php php does string contin only uppercase letters php uppercase sting php convert uppercase case font change caps in php conver to uppercase in php uppercase letter first alphabet php convert string to capital php uppercase function php str capitalize php php upper first capitalize every first letter php first uppercase php lowercase all but first letter php php to upper strupercase php string capitalize in php zfill() php php switch case php uppercase first letter in sentence php swtich case to resolution strlen() php php ucwords how to change the first case of a letter in php upper php how to make first letter capital and rest small in php how to convert all char to uppercase in php php string to uppercase first letter how to captilize in php function convert string to uppercase php php 1st letter lowercase string first character uppercase php php srttoupper php string uppercase first letters php string uppercase first letter php convert text to uppercase php string uppercase strtouupper in array wrds php a lot of names strtoupper php text capitalize what is usfirst in php convert small to capital in php php uppcase first letter convert string to upper case php string in uppercase in php php ucase first letter php uppercase words php code for uppercase uppercase letter in php php mb str to upper first letter capitalize php string to upper in php how to convert first character in string uppercase to lowercase in php how to convert first character in string lowercase to uppercase in php how to convert lowercase to uppercase in php text capitalize php php capitalize function ucfirst( capialize php reduce first letter php convert caps to sentese case php php InitCap make capital first letter php capitalize first letter php function 1st letter capital in php php change to uppercase first letter php capitalize first character php str_to_upper captial functuon php php convert to first letter only caps strtoupper(substr(md5(time) display numbers only uc_upper php php alle uppercase php function uppercase char to uppercase php only first letter capital php first letter capital pph first character of string touppercase in php string's first character uppercase php make first alphabet capital php php output string with uppercase first letter how to make first letter capital in php uppercase letter php string upper case php first upper case php php capitalize first letters php match word in string with uppcase with lowecase first letter upper php only first character uppercase and other lowercase php first letter upcase php ucase php php place char after capital sentense case php how to make first character of string uppercase in php php first letter upper php change sentence in the string php function which will convert a string to uppercase ucfirst php function how to make string capital in php php convert uppercase to first letter uppercase uppercase function in php capitalize first char php php first letter capitilize capital case in php capitalise in php make all upercase in php how to make first later capital in php codeigniter in input field signature capital letters php ucfirst html str to uppercase php php upercase all strtoupper((string)$row noughts php firstletter uppercase php word uppercase ucfist php convert first char to upper case php how to convert all strings to higher case php sentence case php upper case in php how to capitalize cyrillic in php how to capitalize in php php change first character of every word to uppercase how to make first letter capital and rest lowercase in php php capitalized first letters make a sentence all uppcase in php query strtoupper how to convert lower case to upper in php firsrt letter capital in php upcase in php php uppercase first letter after dot covert string to all uppercase in php converting string to uppper case in PHP php upperc php convert uppercase first case senstive php convert to capital letters in php php Capitalized Case php capitalizd string to uppercase in php first word capital inphp php string function first word capital php php uppercase f captial php php covert to all upper covert first char uppercase php php to upper case and exclamation mark string to lower ucfirst get name first letter capital php string uppercase in php cappitalize string in php upper case pghp how to convert string and uppercase first letter php php uppercase to lowercase how to convert string to first letter capital in php first letter capita php To convert all the first character of each word from the string assigned to the variable $AuthorDetails to capital letters. php make a string's first character uppercase php toupper case pho php string capital first letter first letter to uppercase and the rest t lowercase php oppercase php string uppercase php upercase php str.ToUpper php make the first letter uppercase php make text capital u,cap string php php upper string toUpper the first letter of a char in php how to uppercase in php first word capitalzie in php how to show words first letter capital in php php ucfirs str_to_upper php upcasefirst php convert first letter from string to capital letter php php capitalize 1st letter php and capitalize first two letters php first letter capitalized str to upper php to uppercase first letter php all uppercase php how to upper only first character string in php php strtoupper capitalize all letters php php function capitalize first letter php sql does i need uppercase php to uppercase char . ucwords($row->name) ($row->last_name) . php do first php uppercase string built in function to change the first letter in a word to uppercase in php php built in function for making first letters capital php upppercase php proper casing first character to uppercase in php all letters in capital in php send string big character in php first leter to upper php first leter to caps php php D upercase upper case text php make character uppercase php make all uppercase php string make all characters maj php string capitalize php php firt letter capital rest lowercase php to upper case method capitalize first letter php first letter to uppercase php str turn to capital letters php first letter updatecase php capitalize first letter pho strupper php php first letter to uppercase convert first letter to upprcase in php auto capitalize in php php variable ufirst php first capital letter capitalize word php make first letter uppercase php convert string to caps in php php uc first what does UcFirst mean hoe to change to uppercase for the firt caracter php first letter captial in string in php upper first letter in php make first letter capital in php php ufcfirst upper case letter php make uppercase php php first to upper php change first character to uppercase php uppercase and excmation point function php convert to capital letters and excamation point cpitalise php how to capitalize first letter in php php string tilt4 case php change first character big others small text capitalize in php php string first letter uppercase capitalize text php strtoupper() php first letter of string uppercase capitalise php php ucfirst() how to capitalize 1st letter in php string' string first character upper in php php capitalize to letter firstUpcase php php stop email first letter capitalize php change case of first letter make first character uppercase in php captilization in php php str upper TOUPPERCASE PHP capitalize string php str to upper when null php uppcase php how to any upper alphabet php php uppercase all turn the string to uppercase in php php new ucfirst class name php convert string to capitalize php capitalise strings php capitalise uppercase to capitalize php first to upper php convert letters to uppercase php convert first letter uppercase php php uppercase first letter in string first letter capital php php lowercase capitalize first letter how to fix php $reference No = strtoupper($_POST['reference No']); how to fix php $referenceNo = strtoupper($_POST['referenceNo']); php string capitalize uppercase pph ucupper in php php code to dsiplay capslop in first letter php str uppewr upper case php php first character capital php first letter big php code to display as upper case letters php code to print the first letter as uppercase Create cap with php php ucase uppercase in php first letter php ucfirst special characters initcap in php php strisuppercase make first letter of a string uppercase php strupperp php php make all uppercase php capitalize and lowercase return php sentence case upper case function php uppercase all string in php convert first letter to lowercase in php ucase in php upper text php set uppercase php letters should be uppercase in php string toupper case php string to uppercase php convert string to uppercase php php all uppercase php string toupper php string to capital first letter str to uppercase in php capital first letter php convert small letter to capital in php captilize php capitalize first letter in string php php capatilize string how to capitalize first letter php php to uppercase first letter init cap in php php upper case uppercase a string in php php capitalize only first letter of words capitelise first letter php capitalized string in php capitalise string in php how capitialize only first letter in php '/\b\S+$/e' => strtoupper how to uppercase first letter in php php uppercase iii php toUpperCase php first letter MAJ php convert first letter to uppercase how to set uppercase first word using php how to capitalise the first letter php capitalize first letter php php normalize string first uppercase then lowercase php capitalise complete sentence in uppercase letter php capitalize the first letter php php first letter to upper capitalize all letters in php first character to uppercase php Enlarge the first letter of a word in php php upper first letter make all characters uppercase php php capital first letter how to capitaliza in php php function to make first letter capital remove capital at end of string php strtoupper php php strng to Uppercase what does strtoupper do in php string to upper php string capitalize first letter php how to capitalise first letter in php how to convert to uppercase in php first later capital php strtoupper in php php to sentence case ucfirst function inphp capitalization php STING TO UPPER PHP php to lower with first character cap php str to uppercase convert to uppercase in php change first letter to capital in php php make first letter capital php to uppercase function php uppercase only first letter toupper in php php to uppercase first word capital in php toupper php php sentence case capital first letter in php php make first letter uppercase strtouppercase php ucfirst() in php capatilze first letter php capitalize string in php php convert string to sentence case uppercase php first letter will automatically capital while entering in database php php upper capitalise first letter php php to upercase capitalize first alphabet php capitilise first letter php php string to uppercase hot to capitalize first letter in php to uppercase in php uppercase in php capitlize first letter php php string capitalize first letter touppercase in php php convert all character to caps php uppercase php string to upper case php change sting to caps php strto sentence case php frist character uppercase capitalize php string strtoupper first letter php ucfirst php capitalize fist letter on insert php capitalise first letter php capatolize string php str capitalize first letter php str uppercase first letter fisrt letter upper php ucfirst in php PHP capitalize sentence first character uppercase php make first letter capital php php first character of string uppercase How to uppercase the first letter of a string php php first letter uppercase first letter capital in php first letter uppercase php php set first character of string to upper string to capitalize php uppercase first letter php PHP set first char to uppercase capitalize first character php capitalize php ucfirst php sentence case in php php first character uppercase php text transform capitalize php first letter capital first letter caps in php make string start with uppercase php first character capital in php php how to make string start with capital letter php first char uppercase first to uppercase php php first word uppercase php capitalize first letter php capitalize capital letter php php capitalize string php ucfirst php uppercase first letter php capitalize first string how to change first letter to uppercase and other to lowercase in php first letter to upper php
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source