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 :: migrate specific table laravel 
Php :: how to get ip address of client using php 
Php :: fluid inline if 
Php :: do_shortcode 
Php :: php filter validate email 
Php :: js redirect in php 
Php :: how to migrate just one table in laravel 
Php :: remove html tags from string php 
Php :: date now php 
Php :: wordpress get_date 
Php :: automatic years php 
Php :: php array unique array to string conversion 
Php :: the_post_thumbnail add class 
Php :: how to find php.ini 
Php :: php if url contains 
Php :: php artisan migrate create table 
Php :: strtoupper in php 
Php :: Syntax error or access violation: 1071 Specified key was too long; max key length is 1000 bytes (SQL: alter table `users` add unique `users_email_unique`(`email`)) 
Php :: phpexcel set font color 
Php :: php make query string from array 
Php :: php save array to file 
Php :: date casting from datetime to d-m-Y laravel 
Php :: hit a simple url using curl in php 
Php :: ucwords in php 
Php :: php filter emal 
Php :: laravel format number blade 
Php :: laravel read json file from storage 
Php :: codeigniter 3 limit 
Php :: laravel validation min string length 
Php :: html input date php date today 
ADD CONTENT
Topic
Content
Source link
Name
5+6 =