This forum is now read-only. Please use our new forums! Go to forums
little problem
Hi folks,
i need a little help. Maybe its not a big thing but here is my code
Answer 5151e21ef51a82cf640002e4
You forgot a semicolon after defining your variables and $start needs to be defined before $time.
2 comments
Thanks Aaron y!
I see another problem… What is the value of the $time variable after the first assignment statement? In other words, what was the value of the $start variable before it was assigned the value of 20 in the second statement.
If a variable isn’t defined, it’s NULL and it throws a “Notice: Undefined variable.” You can use isset($variable) to check if a variable is defined. If the $start would be defined before $time, both of them would be “20”, sorry if this doesn’t help, didn’t quite understand your question ;D
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 Promotion by it
maybe it can help you