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 each word

ucwords(string);
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 :: upgrade php 7.3 centos 7 
Php :: 419 page expired in laravel 
Php :: laravel abort with message 
Php :: wp cli command activate plugin 
Php :: php cors 
Php :: laravel model relationship find soft deleted 
Php :: php header location to same page 
Php :: laravel model quard 
Php :: deprecated filter_var() phpmailer 
Php :: Uncaught Error: Call to undefined function "themeblvd_add_builder_element()" 
Php :: php form detect if number has decimals 
Php :: integer division in php 
Php :: mask card php 
Php :: wp override home url with php 
Php :: PHP strrchr — Find the last occurrence of a character in a string 
Php :: img src php wordpress 
Php :: laravel install production 
Php :: Google Dorks Using special search string to find vulnerable websites: 
Php :: remove get parameters from url php 
Php :: Remove product (item) from WooCommerce checkout page using AJAX 
Php :: laravel emial unique igration error 
Php :: php classes 
Php :: composer require laravel/ui laravel 7 
Php :: laravel make model and migration 
Php :: how to add dummy records using factory in laravel 8 
Php :: php redirect to page 
Php :: laravel get authorization bearer token 
Php :: php base64 encoded image to png 
Php :: delete all rows from table laravel 
Php :: woocommerce change sale text 
ADD CONTENT
Topic
Content
Source link
Name
5+4 =