PHP function


#1

https://www.codecademy.com/en/courses/web-beginner-en-RcIEe/0/7?curriculum_id=5124ef4c78d510dd89003eb8#

whats the problem in here???


#2

Hi you should post your code ? because with that link we can't see your code..


#3







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

       aboutMe ("Mahtab", 30);
       }
    ?>
  </p>
</body>


#4

just posted it down here


#5

This line

aboutMe ("Mahtab", 30);

is the call function so you should put it outside the function and add a ; at then end of the echo so your code should be like that

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

#6

ohhh thanks! its done now! :slight_smile:


#7

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.