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 :: count with condition laravel 
Php :: laravel collective form include image 
Php :: Entity of type "DoctrineCommonCollectionsArrayCollection" passed to the choice field must be managed. Maybe you forget to persist it in the entity manager? 
Php :: file_put_contents error in laravel 
Php :: if else if php code reflect 
Php :: php time() 
Php :: how to make custom logiger in laravel 
Php :: include() in php 
Php :: multiple submit button in php 
Php :: generate entities symfony 
Php :: wp_list_custom_post type 
Php :: how get data if has relation in laravel 
Php :: recursive binary search php 
Php :: php clean user input 
Php :: group where conditions in laravel 
Php :: laravel database seeder 
Php :: move uploaded file in php 
Php :: php arrow function 
Php :: Package phpoffice/phpexcel is abandoned, you should avoid using it. Use phpoffice/phpspreadsheet instead. 
Php :: insert batch in laravel 
Php :: como destruir uma variavel de sessão 
Php :: declare variable in php class 
Php :: symlink.php laravel 
Php :: Update First and Last Day of Previous Month with Carbon 
Php :: eager load relationships by default in the model laravel 
Php :: the uploaded file exceeds the upload_max_filesize directive in php.ini. wordpress 
Php :: define php 
Php :: php difference between two dates in seconds 
Php :: $_get and $_post in php 
Php :: imagick php 
ADD CONTENT
Topic
Content
Source link
Name
9+2 =