“capitalizar PHP” 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

ucfirst () php


<?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 
Ramsey1120

PHP do primeiro personagem

ucwords("hello world"); // Hello World
ucfirst("hello world"); // Hello world
Zany Zebra

PHP Altere a picada para tampas

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

echo $uppercase;
Awful Anteater

ucfirst

<?php
/* Convert the first character of "hello" to uppercase:  */
echo ucfirst("hello samy!");

//output : Hello samy!
?>
Mr. Samy

capitalizar PHP

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

Respostas semelhantes a “capitalizar PHP”

Perguntas semelhantes a “capitalizar PHP”

Mais respostas relacionadas para “capitalizar PHP” em PHP

Procure respostas de código populares por idioma

Procurar outros idiomas de código