This is program of changing bill gates to Bill Gates, Small letter to Capital letter. I want to see its result on my computer screen so i putted Print $full_name; at the end of if statement before the curly bracket but i get no change and reflect to blank screen, and when i putted print $full_name; outside of the if statement below the curly bracket then i get simple bill gates without changing word to uppercase, Please tell me where to put print function to see proper result
<?PHP
$full_name = 'bill gates';
if (isset($_POST['Submit1'])) {
$full_name = $_POST['username'];
$full_name = ucwords( $full_name );
//why print $full_name don't work here i thought it should work here
}
// why print $full_name; showing here small letter. Although ucwords already saved //new value in $full_name variable
?>