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 :: codeigniter 3 send email smtp 
Php :: how add new column in larevel with migration 
Php :: cambiar entre versiones de php linux 
Php :: random string generator php 
Php :: ubuntu install php 8 nginx 
Php :: change minutes in to hours carbon 
Php :: php artisan ui tailwind css 
Php :: laravel get average from a column 
Php :: delete directory from laravel storage 
Php :: do while php 
Php :: push key and value in laravel 
Php :: laravel eloquent get first 
Php :: laravel duplicate row 
Php :: laravel check if record exists 
Php :: laravel session add 
Php :: or where laravel 
Php :: php convert string to boolean 
Php :: How to remove updated_at or use only created_at laravel eloquent ORM 
Php :: the_post_thumbnail 
Php :: route closure function in laravel 
Php :: Laravel eloquent get data without duplicates 
Php :: genrate file name in php 
Php :: get current month php 
Php :: php alert yes no 
Php :: web scraping in php 
Php :: php check if class exists 
Php :: wpdb get results foreach 
Php :: redirect to attempting url after login laravel 
Php :: laravel passport get tokenId 
Php :: php constant 
ADD CONTENT
Topic
Content
Source link
Name
6+7 =