public
Created

ucfirst explanation

  • Download Gist
UpperCaseFirst.php
PHP
1 2 3 4 5 6 7 8 9 10 11 12 13
<?php
 
$name = 'marcos';
$last_name = 'garcia';
 
echo 'My name is', $name, $last_name;
echo 'My name is', ucfirst($name), ucfirst($last_name);
 
 
// Resultado #0: My name is marcos garcia
// Resultado #1: My name is Marcos Garcia
 
?>

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.