This forum is now read-only. Please use our new forums! Go to forums
Why the extra requirements?
Why do these exercises require the brackets in the if/elseif/else statements? PHP allows you to omit them when it doesn’t create ambiguity - why make the exercises have different syntax requirements than the actual language?
Answer 548a156d51b8871d03000060
Answer 548a162a9113cb7f7800006a
1 vote
That’s a great reason to put them in the written part of the tutorial… but I still think it should pass with acceptable PHP code either way. It’s frustrating to have to go back and add in unnecessary details just to move on with the program.
Answer 55c4487ed3292f9f96000260
0 votes
Can someone provide here the code without these extra brackets please! I’d like to know how it will be with less code.
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
1 comments
Yeah true, it’s really harsh on it’s requirements