You may want to use ucfirst().
For multibyte strings, please see this snippet.
More Related Contents:
- Make all words lowercase and the first letter of each word uppercase
- Title case a string containing one or more last names while handling names with apostrophes
- Why is PHP printing variables used in if statement?
- How to access object data and display the comments
- How do you use variables within $_POST? [closed]
- How do I check if my string starts with a certain word in PHP? [closed]
- Reading very large files in PHP
- How to send UTF-8 email?
- Symfony3 ClassNotFoundException after bundle creation
- PHP list of specific files in a directory
- MySQLi count(*) always returns 1
- Manually parse raw multipart/form-data data with PHP
- MongoDB Duplicate Documents even after adding unique key
- Can’t access global variable inside function
- Add … if string is too long PHP [duplicate]
- Formulas to Calculate Geo Proximity
- How to create a zip file using PHP [duplicate]
- Unset a column in a multidimensional array
- How to auto call function in php for every other function call
- Get all child, grandchild etc nodes under parent using php with mysql query results
- Laravel Migration table already exists, but I want to add new not the older
- Dynamic shipping fee based on custom radio buttons in Woocommerce
- Saving images in database mysql
- How to enable PHP’s openssl extension to install Composer?
- Why is $a + ++$a == 2?
- php multidimensional array get values
- PHP – Listing all directories and sub-directories recursively in drop down menu [duplicate]
- How to get the last dir from a path in a string
- How do I move an array element with a known key to the end of an array in PHP?
- is_unique for codeigniter form validation