This forum is now read-only. Please use our new forums! Go to forums
This is just plain wrong
Here’s the code:
<html>
<head>
<title></title>
</head>
<body>
<?php
function displayName() {
echo "James";
}
displayName();
?>
</body>
</html>
And the error message is “Oops, try again! It looks like your function doesn’t echo or print anything! “ - in spite of the fact that I can see my name echo
ed to screen.
Answer 51e13cbe631fe94a8d00369f
1 vote
your code is ok.
what I did is just copy the exercise 3 code (complete), erased the code in exercise 4 and paste the other one, then added the line to call the function.
the only diference is that the other one has the comments and the paragraph tags, and passed.
weird, but worked.
Answer 5511160bd3292fd3cb001943
0 votes
You code is absolutely right. The problem something is with the browser. Just refresh the page and try to summited again. That’s it.
Popular free courses
- Free Course
Learn SQL
In this SQL course, you'll learn how to manage large datasets and analyze real data using the standard data management language.Beginner friendly,4 LessonsLanguage Fluency - Free Course
Learn JavaScript
Learn how to use JavaScript — a powerful and flexible programming language for adding website interactivity.Beginner friendly,11 LessonsLanguage Fluency - Free Course
Learn HTML
Start at the beginning by learning HTML basics — an important foundation for building and editing web pages.Beginner friendly,6 LessonsLanguage Fluency
2 comments
I did the same thing… really weird. Thank you for the help. It worked!
Just copy code reset and paste it back on the ide.