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

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 :: Class "BarryvdhLaravelIdeHelperIdeHelperServiceProvider" not found 
Php :: start server symfony command 
Php :: year shortcode wordpress 
Php :: ip condition in php 
Php :: seed one table laravel 
Php :: display category name wordpress 
Php :: remove public in laravel hosting 
Php :: calcolo iva php 
Php :: php display all rows in mysql table 
Php :: laravel insert 
Php :: curl error handling 
Php :: convert am pm time to 24 hour in php 
Php :: Install ext-dom php 7.2 
Php :: for php 
Php :: laravel model to array 
Php :: beautify var_dump 
Php :: get last 3 characters of string in php 
Php :: yii 1 clear cache 
Php :: laravel db does not exists 
Php :: reverse array laravel 
Php :: php redirect to another page 
Php :: define url wordpress 
Php :: woocommerce custom sale banner, sash 
Php :: wordpress get post author link 
Php :: rollback laravel transaction 
Php :: logout in laravel 
Php :: get page name wp 
Php :: laravel grouping routes 
Php :: php sleep half a second 
Php :: laravel request validation boolean 
ADD CONTENT
Topic
Content
Source link
Name
6+4 =