Introducing the Practice2:15 with Alena Holligan
Let's practice some PHP to solidify your growing knowledge and make it stick.
It's okay to make multiple attempts before coming to a solution. That struggle to remember what you've learned , and apply it to the situation, is what causes the knowledge to take root.
Course: PHP Basics (Stage 3) String Manipulation
[MUSIC] 0:00 Hey, everyone, Alena here. 0:04 Practice is vital to becoming a proficient developer. 0:07 It solidifies what you've learned, causing it to stick in your memory. 0:10 With deliberate practice it becomes quicker and 0:14 easier to solve challenges you'll face everyday. 0:17 So, let's practice some PHP. 0:20 This practice session is intended to give you additional practice 0:22 with string manipulation, from the third stage of the PHP basics course. 0:26 If you haven't taken that course already, or find this practice session too 0:31 difficult, then review string manipulation from stage three of the PHP basics course. 0:34 Check the notes associated with this video for additional links and resources. 0:42 Let's review the challenge. 0:47 There are four steps to completing this challenge. 0:48 The index.php file includes a comment for each step. 0:51 Add your code below each comment. 0:56 Step one. 0:59 Create a variable named programmer and set its value equal to Ada Lovelace. 1:00 Step two. 1:06 Create another variable named year, and set its value equal to 1843. 1:08 Step three. 1:15 Replace programmer in the message string with the variable programmer. 1:16 And replace year in the message string with the variable year. 1:21 And finally, step four, display the message string to the screen. 1:27 At any point, to test out what you've done, go to View > Show Console. 1:32 And type php index.php. 1:40 There are no errors and nothing is displayed to the screen yet. 1:46 Remember, it's okay to make multiple attempts before coming to a solution. 1:53 That struggle to remember what you've learned, and 1:58 apply it to the situation is what causes the knowledge to take root. 2:00 If you do get stuck, 2:05 I've included additional resources in the notes associated with this video. 2:06 Go ahead, and give it a try, and I'll show you my solution in the next video. 2:11
You need to sign up for Treehouse in order to download course files.Sign up