Answers for "php ucwords"

PHP
11

php uppercase

//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"
Posted by: Guest on September-01-2020
6

php ucfirst all words

$foo = 'hello world!';
$foo = ucwords($foo);             // Hello World!

$bar = 'HELLO WORLD!';
$bar = ucwords($bar);             // HELLO WORLD!
$bar = ucwords(strtolower($bar)); // Hello World!

//With custom delimiter
$foo = 'hello|world!';
$bar = ucwords($foo);             // Hello|world!

$baz = ucwords($foo, "|");
Posted by: Guest on July-07-2020
6

php uppercase each word

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

php capitalize first letter

ucfirst("hello world!");
Posted by: Guest on April-05-2020
0

php ucwords

<?php
echo ucwords("hello world"); // ouput Hello World
?>
Posted by: Guest on September-28-2021

Browse Popular Code Answers by Language