This forum is now read-only. Please use our new forums! Go to forums

0 points
Submitted by Rich Girou
over 10 years

Whats wrong? Passes but does not print my name.

Answer 529591ecabf821ab7000011f

0 votes

Permalink

I think because your variable $name is not global, so the function can not see it. You should rewrite like this:

$name = “Rich”; function displayName($text){ echo $text; } displayName($name);

Or you should declare $name as global variable/

points
Submitted by Jhon Villarreal
over 10 years

Answer 534e7e92548c350891001971

0 votes

Permalink

reset code and just press save and submit code.

points
Submitted by Fireblaze1313
almost 10 years