capitalize php
//string to all uppercase
$string = "String with Mixed use of Uppercase and Lowercase";
//php string to uppercase
$string = strtoupper($string);
// = "STRING WITH MIXED USE OF UPPERCASE AND LOWERCASE"ucfirst("hello world!");<?php
$foo = 'hello world!';
$foo = ucfirst($foo); // Hello world!
$bar = 'HELLO WORLD!';
$bar = ucfirst($bar); // HELLO WORLD!
$bar = ucfirst(strtolower($bar)); // Hello world!
?>
// string manipulation function
$lowercase = "this is lower case";
$uppercase = strtoupper($lowercase);
echo $uppercase;<?php
/* Convert the first character of "hello" to uppercase: */
echo ucfirst("hello samy!");
//output : Hello samy!
?>ucwords("hello world"); // Hello World
ucfirst("hello world"); // Hello world
Also in PHP:
- check json key exists php
- clear all caches in laravel
- command to install laravel 7
- FORCE CAPS LOCK PHP
- connexion à la base de donnée microsoftsqlserver avec php
- date time format 12 hour am pm php
- date en cours php
- check if strcontains
- date(w) in php
- current+date+php
- find string in word php
- Syntax error or access violation: 1071 Specified key was too long; max key length is 1000 bytes (SQL: alter ta
- create a new project in laravel
- array key exists laravel
- check if a string has a character php
- $_SERVER php where link came from
- date time format in php
- clear browser cache in laravel
- PHP Warning
- execution time in php and how increase
- count elements of a string php
- create foreign key laravel migration
- executar comando linux php
- check if substring exists in string php\