Search
 
SCRIPT & CODE EXAMPLE
 

PHP

php uppercase

//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"
Comment

Capitalize in php


<?php
$foo = 'bonjour tout le monde!';
$foo = ucfirst($foo);             // Bonjour tout le monde!

$bar = 'BONJOUR TOUT LE MONDE!';
$bar = ucfirst($bar);             // BONJOUR TOUT LE MONDE!
$bar = ucfirst(strtolower($bar)); // Bonjour tout le monde!
?>

Comment

capitalize php

<?php
 
$str_first_cap = "hang on, this is first letter capital example!";
 
echo ucwords($str_first_cap);
 
?>
Comment

php capitalize first letter

ucfirst("hello world!");
Comment

uppercase php

$my_string_in_uppercase = strtoupper($my_string);
Comment

PREVIOUS NEXT
Code Example
Php :: carbon months between dates 
Php :: php imap install 
Php :: how to add property to an exsisting object in php 
Php :: Allowed memory size of 1610612736 bytes exhausted (tried to allocate 4096 bytes) in phar:///usr/local/bin/composer/src/Composer/DependencyResolver/RuleWatchGraph.php on line 52 
Php :: php foreach 
Php :: carbon difference between two dates 
Php :: php get first 10 elements of array 
Php :: php randon integer 4 digit 
Php :: minus 1 year php 
Php :: laravel new date 
Php :: larave artisan command run in web 
Php :: codeigniter redirect 
Php :: php failed to open stream: Permission denied iis 
Php :: How to get a substring between two strings in PHP? 
Php :: multiple middleware laravel 
Php :: convert image to base64 in laravel 
Php :: php get current month first date 
Php :: how to delete php from win10 
Php :: validate each value from array laravel 
Php :: carbon get time 
Php :: iteration in php 
Php :: php replace all spaces with dashes 
Php :: laravel menu active class 
Php :: mac address php 
Php :: getMessage in php 
Php :: get country from clouflare 
Php :: read pdf text in php 
Php :: pass in php 
Php :: get ip address in laravel 
Php :: Line : 83 -- syntax error, unexpected end of file php 
ADD CONTENT
Topic
Content
Source link
Name
2+9 =