Problem already solved. thanks


#1

says the $age is not defined. don't know what's wrong. please help. Thanks!







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




#2

Your code should look like this:

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