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 string to uppercase

<?php
$str = "Mary Had A Little Lamb and She LOVED It So";
$str = strtoupper($str);
echo $str; // show: MARY HAD A LITTLE LAMB AND SHE LOVED IT SO
Comment

uppercase php

$my_string_in_uppercase = strtoupper($my_string);
Comment

PREVIOUS NEXT
Code Example
Php :: blade set variable 
Php :: Missing expression. (near "ON" at position 25) 
Php :: ubuntu set alternatives 
Php :: laravel faker title 
Php :: php two decimal places 
Php :: wc order details 
Php :: php clean all output buffers 
Php :: update eloquent with increment laravel 
Php :: laravel migrate if not exists 
Php :: php version compare function 
Php :: disable quantity field in woocommerce 
Php :: php hash password 
Php :: laravel check record exists 
Php :: base url in php 
Php :: laravel nigerian time zone 
Php :: sustituir caracteres especiales php 
Php :: php echo an array to console 
Php :: remove index.php in codeigniter 
Php :: composer update withou memory limit 
Php :: laravel migrate seed 
Php :: php number to color 
Php :: how to find this day is holiday in php day 
Php :: dont show file type in url 
Php :: php header pdf 
Php :: table has column laravel 
Php :: select sql in php 
Php :: pass parameter to view laravel 
Php :: php setinterval 
Php :: merge two arrays one as key to another php 
Php :: laravel old value or default 
ADD CONTENT
Topic
Content
Source link
Name
9+7 =