1 00:00:00,800 --> 00:00:02,000 How did it go? 2 00:00:02,000 --> 00:00:04,520 Were you able to complete the challenges? 3 00:00:04,520 --> 00:00:06,180 If not, no worries. 4 00:00:06,180 --> 00:00:09,260 You can watch my solution, compare it to what you wrote, 5 00:00:09,260 --> 00:00:10,850 and then try the challenge again. 6 00:00:12,320 --> 00:00:16,190 In step one, we were asked to rename the index file so 7 00:00:16,190 --> 00:00:18,020 that PHP code will be executed. 8 00:00:19,410 --> 00:00:23,160 For step two, we were asked to add a code block to the top of the index file. 9 00:00:24,700 --> 00:00:30,964 Within this code block, we added title equals Top 5 Learning Tips. 10 00:00:30,964 --> 00:00:35,000 For a simple string, we can use either single or double quotes. 11 00:00:36,110 --> 00:00:36,930 For step three, 12 00:00:36,930 --> 00:00:41,840 I replaced the two instances of the text title with my title variable. 13 00:00:42,850 --> 00:00:48,233 For step four, I replaced the text, include quotes, 14 00:00:48,233 --> 00:00:55,740 by using include and then within quotes, inc/learning_quotes.html. 15 00:00:55,740 --> 00:00:58,520 Once again, single or double quotes would work here. 16 00:01:00,170 --> 00:01:04,540 For step five, I replaced the text, include tips, 17 00:01:04,540 --> 00:01:09,485 by using include, and then within quotes, 18 00:01:09,485 --> 00:01:13,880 inc/learning_tips.html. 19 00:01:13,880 --> 00:01:14,676 For step six, 20 00:01:14,676 --> 00:01:19,460 I used the built in date function to replace the text date with today's date. 21 00:01:20,900 --> 00:01:24,080 To get the full name of the month, I used the uppercase F. 22 00:01:25,810 --> 00:01:28,930 For the two digit day, I used the lowercase d. 23 00:01:30,840 --> 00:01:36,900 For a four digit year, I used the uppercase Y. 24 00:01:36,900 --> 00:01:40,700 If your solution was different than mine, that's great. 25 00:01:40,700 --> 00:01:43,380 Seldom is there only one solution. 26 00:01:43,380 --> 00:01:46,050 If you see something interesting in my code, 27 00:01:46,050 --> 00:01:48,340 you should try implementing it in your own program. 28 00:01:49,490 --> 00:01:51,018 Let's take a look at this in the browser. 29 00:01:54,765 --> 00:01:58,550 As you can see, we have the quotes on the left and the learning tips on the right. 30 00:02:00,440 --> 00:02:02,440 And in the footer, is today's date. 31 00:02:03,630 --> 00:02:07,310 If your solution was different than mine, that's great. 32 00:02:07,310 --> 00:02:10,180 Seldom is there only one solution. 33 00:02:10,180 --> 00:02:12,740 If you see something interesting in my code, 34 00:02:12,740 --> 00:02:15,880 you should try implementing that in your own program. 35 00:02:15,880 --> 00:02:19,140 Keep practicing so you can master these new skills. 36 00:02:19,140 --> 00:02:21,130 Until next time, happy coding.