Parameters and arguments


#1

i don't understand why it doesn't want to print out my name. i can't find the mistake in this code .

`

function greetings($name){
echo "greetings, " . $name . "!" ;

    greetings("alex");

  }```

#2

Hi this line

greetings("alex");

should be outside the function greeting since it's the call function

function greeting($name) {
   #here goes your code
}
#call the function here
greetings("alex");

#4

yes thank you i went on to the next excercise and i figured it out there finally!!! but thank you soo much,, i was stuck on this for 25 minutes :S :wink: now i understand it completely . :smiley: