Horje
ucwords in php Code Example
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, "|"); 
Source: www.php.net
ucwords in php
<?php
/* Convert the first character of each word to uppercase: */
echo ucwords("hello samy, how are you ?");

//output : Hello Samy, How Are You ?
?> 
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 ucwords
<?php
echo ucwords("hello world"); // ouput Hello World
?> 




Php

Related
message	"Class 'Input' not found" Code Example message "Class 'Input' not found" Code Example
ubuntu php uninstall Code Example ubuntu php uninstall Code Example
woocommerce disable zoom on product image Code Example woocommerce disable zoom on product image Code Example
php get next saturday Code Example php get next saturday Code Example
php remove non alphanumeric Code Example php remove non alphanumeric Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
11