“Php forte” Respostas de código

PHP em maiúsculas

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

string php mayusculas


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

Testy Teira

PHP Altere a picada para tampas

$lowercase = "this is lower case";
$uppercase = strtoupper($lowercase);

echo $uppercase;
Awful Anteater

Php forte


setlocale(LC_CTYPE, 'de_DE.UTF8');

// be noted
echo strtoupper('Umlaute äöü in uppercase'); // outputs "UMLAUTE äöü IN UPPERCASE"
echo mb_strtoupper('Umlaute äöü in uppercase', 'UTF-8'); // outputs "UMLAUTE ÄÖÜ IN UPPERCASE"
Zidane (Vi Ly - VietNam)

Respostas semelhantes a “Php forte”

Perguntas semelhantes a “Php forte”

Mais respostas relacionadas para “Php forte” em PHP

Procure respostas de código populares por idioma

Procurar outros idiomas de código