Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
ucfirst explanation
$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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment