1 00:00:00,410 --> 00:00:03,890 How did it go, were you able to complete the challenge? 2 00:00:03,890 --> 00:00:08,730 If no, no worries you can watch my solution compared to what you wrote and 3 00:00:08,730 --> 00:00:09,820 then try the challenge again. 4 00:00:11,170 --> 00:00:15,090 In step one we were asked to create a variable named programmer and 5 00:00:15,090 --> 00:00:19,850 set it's value equal to Ada Lovelace, we start with the dollar sign. 6 00:00:19,850 --> 00:00:23,910 Programmer equals and then within quotes, Ada Lovelace. 7 00:00:25,430 --> 00:00:29,860 Step two we were to create another variable named year, and 8 00:00:29,860 --> 00:00:34,301 set its value equal to 1843. 9 00:00:34,301 --> 00:00:38,396 Dollar sign year equals 1843. 10 00:00:38,396 --> 00:00:43,120 Because this is an integer and we're going to use it as a string. 11 00:00:43,120 --> 00:00:47,680 It doesn't really matter if we use quotes or not quotes. 12 00:00:47,680 --> 00:00:48,480 Either one would work. 13 00:00:50,480 --> 00:00:54,180 PHP will change your variables to best match the situation. 14 00:00:55,360 --> 00:01:00,960 Step 3, replace programmer in the message string with the variable programmer. 15 00:01:00,960 --> 00:01:04,240 And replace year in the message string with the variable year. 16 00:01:05,940 --> 00:01:09,750 Because our message string was within single quotes, 17 00:01:09,750 --> 00:01:14,980 if we added the programmer variable, directly within the string, 18 00:01:14,980 --> 00:01:18,250 it would just give us \$programmer. 19 00:01:18,250 --> 00:01:22,210 Instead, before programmer, I close the string, and 20 00:01:22,210 --> 00:01:25,360 use the string concatenation character, period. 21 00:01:27,250 --> 00:01:30,950 I then put programmer, followed again by another period. 22 00:01:32,300 --> 00:01:37,440 And this time, I changed the last part of our message to double quotes. 23 00:01:38,720 --> 00:01:43,110 When a variable is used within a string that has double quotes, 24 00:01:43,110 --> 00:01:45,065 the value of that variable is used. 25 00:01:46,500 --> 00:01:49,540 Step four is to display the message string to the screen. 26 00:01:50,880 --> 00:01:53,130 In this case, we used echo message. 27 00:01:54,360 --> 00:01:57,930 If your solution was different than mine, that's great. 28 00:01:57,930 --> 00:02:00,510 Seldom is there only one solution. 29 00:02:00,510 --> 00:02:02,990 If you see something interesting in my code, 30 00:02:02,990 --> 00:02:06,200 you should try implementing it in your own program. 31 00:02:06,200 --> 00:02:09,500 Keep practicing so you can master these new skills. 32 00:02:09,500 --> 00:02:11,310 Until next time, happy coding.