1 00:00:00,000 --> 00:00:04,917 [MUSIC] 2 00:00:04,917 --> 00:00:07,150 Hey, everyone, Alena here. 3 00:00:07,150 --> 00:00:10,660 Practice is vital to becoming a proficient developer. 4 00:00:10,660 --> 00:00:14,590 It solidifies what you've learned, causing it to stick in your memory. 5 00:00:14,590 --> 00:00:17,190 With deliberate practice it becomes quicker and 6 00:00:17,190 --> 00:00:20,180 easier to solve challenges you'll face everyday. 7 00:00:20,180 --> 00:00:21,640 So, let's practice some PHP. 8 00:00:22,810 --> 00:00:26,480 This practice session is intended to give you additional practice 9 00:00:26,480 --> 00:00:31,120 with string manipulation, from the third stage of the PHP basics course. 10 00:00:31,120 --> 00:00:34,980 If you haven't taken that course already, or find this practice session too 11 00:00:34,980 --> 00:00:40,990 difficult, then review string manipulation from stage three of the PHP basics course. 12 00:00:42,010 --> 00:00:47,090 Check the notes associated with this video for additional links and resources. 13 00:00:47,090 --> 00:00:48,980 Let's review the challenge. 14 00:00:48,980 --> 00:00:51,800 There are four steps to completing this challenge. 15 00:00:51,800 --> 00:00:55,220 The index.php file includes a comment for each step. 16 00:00:56,320 --> 00:00:58,070 Add your code below each comment. 17 00:00:59,240 --> 00:01:00,320 Step one. 18 00:01:00,320 --> 00:01:06,633 Create a variable named programmer and set its value equal to Ada Lovelace. 19 00:01:06,633 --> 00:01:08,261 Step two. 20 00:01:08,261 --> 00:01:15,365 Create another variable named year, and set its value equal to 1843. 21 00:01:15,365 --> 00:01:16,960 Step three. 22 00:01:16,960 --> 00:01:21,980 Replace programmer in the message string with the variable programmer. 23 00:01:21,980 --> 00:01:25,760 And replace year in the message string with the variable year. 24 00:01:27,190 --> 00:01:31,010 And finally, step four, display the message string to the screen. 25 00:01:32,390 --> 00:01:38,846 At any point, to test out what you've done, go to View > Show Console. 26 00:01:40,778 --> 00:01:44,231 And type php index.php. 27 00:01:46,003 --> 00:01:48,987 There are no errors and nothing is displayed to the screen yet. 28 00:01:53,113 --> 00:01:58,230 Remember, it's okay to make multiple attempts before coming to a solution. 29 00:01:58,230 --> 00:02:00,450 That struggle to remember what you've learned, and 30 00:02:00,450 --> 00:02:05,030 apply it to the situation is what causes the knowledge to take root. 31 00:02:05,030 --> 00:02:06,610 If you do get stuck, 32 00:02:06,610 --> 00:02:11,200 I've included additional resources in the notes associated with this video. 33 00:02:11,200 --> 00:02:15,050 Go ahead, and give it a try, and I'll show you my solution in the next video.