string ucfirst ( string $str )
Make a string's first character uppercase
Returns a string with the first character of str capitalized, if that character is alphabetic.
<?php
$foo = 'hello world!';
$foo = ucfirst($foo); // Hello world!
$bar = 'HELLO WORLD!';
$bar = ucfirst($bar); // HELLO WORLD!
$bar = ucfirst(strtolower($bar)); // Hello world!
?>
14.-Curso PHP-MySQL. Formatear, cortar y unir strings.
0 Comment:
Post a Comment