Search
 
SCRIPT & CODE EXAMPLE
 

PHP

string first letter uppercase php


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

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

Comment

first character uppercase php

ucwords("hello world"); // Hello World
ucfirst("hello world"); // Hello world
Comment

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
Comment

Capitalize in php


<?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!
?>

Comment

capitalize php

<?php
 
$str_first_cap = "hang on, this is first letter capital example!";
 
echo ucwords($str_first_cap);
 
?>
Comment

php capitalize first letter

ucfirst("hello world!");
Comment

php uppercase first letter

ucfirst($myword);
Comment

php function uppercase first letter

ucfirst($data)
Comment

PREVIOUS NEXT
Code Example
Php :: php remove array element reset keys 
Php :: ::update() should not be called statically 
Php :: delete all cookies in php 
Php :: blade condition if else laravel 
Php :: yyyymmdd to yyyy-mm-dd php 
Php :: php split array in half 
Php :: var dump php look clear 
Php :: check current pages is a child page wordpress 
Php :: laravel select default old value 
Php :: Laravel randomise data from database 
Php :: Flutter migrate to Android Studio 
Php :: php rsa encryption 
Php :: laravel wher in 
Php :: php remove everything after symbol 
Php :: connect to sql database 
Php :: php pdo check if update query successful 
Php :: wp php get_the_category posts loop 
Php :: LARAVEL CREAT NEW TEST 
Php :: php remove duplicates from multidimensional array 
Php :: get country from ip 
Php :: delete all records from table using button laravel Eloquent 
Php :: laravel foreach loop 
Php :: laravel file permissions 
Php :: how to go to another folder in php 
Php :: laravel 8 foreign key migration 
Php :: The `url` supplied for the path (./nova) repository does not exist 
Php :: remove controller cache laravel 
Php :: laravel db ssh 
Php :: carbon format date in laravel 
Php :: php 
ADD CONTENT
Topic
Content
Source link
Name
6+3 =