Problem in function 2 (7.practice makes perfect)


#1

I am getting error while running my code please help me.


<?php
$name = "sabin";
$age = 18;
function aboutMe($name , $age){
echo "Hello! My name is " . $name . " and I am " . $age . " years old."
}
aboutMe($name ,$age);
?>


#2

     <?php
        $name = "sabin";
        $age = 18;
       function aboutMe($name , $age) {
           echo "Hello! My name is " . $name . " and I am " . $age . " years old."; /* PHP MUST, I repeat MUST, have a semi-colon ending every line, you were missing one here.*/  
       }
       aboutMe($name ,$age);
        ?>