title
PHP Programming

description
Get the Cheat Sheet Here : http://goo.gl/aQbQ4F Subscribe to Me: http://bit.ly/2FWQZTx Learn HTML in 15 Minutes : http://goo.gl/UoSoVm Best PHP book : http://goo.gl/wNMdWf MY UDEMY COURSES ARE 87.5% OFF TIL December 19th ($9.99) ONE IS FREE ➡️ Python Data Science Series for $9.99 : Highest Rated & Largest Python Udemy Course + 56 Hrs + 200 Videos + Data Science https://bit.ly/Master_Python_41 ➡️ C++ Programming Bootcamp Series for $9.99 : Over 23 Hrs + 53 Videos + Quizzes + Graded Assignments + New Videos Every Month https://bit.ly/C_Course_41 ➡️ FREE 15 hour Golang Course!!! : https://bit.ly/go-tutorial3 Like the channel? Consider becoming a Patreon! Check it out here: ►► https://www.patreon.com/derekbanas In this video tutorial I'll teach pretty much the whole PHP programming language in one video. I have received this tutorial request many times lately so I hope you enjoy it. The cheat sheet can be found below the video. I cover quotes, comments, date(), variables, data types, getting data from HTML, heredoc, constants, arithmetic, shortcuts, reference operators, comparison operators, if, elseif, else, echo, printf, ternary operator, switch, while, for, foreach, arrays, strings, and much more. *Watch More Learn in One Videos* ►► Java - https://youtu.be/n-xAqcBCws4 ►► C++ - https://youtu.be/Rub-JsjMhWY ►► Python - https://youtu.be/N4mEzFDjqtA ►► MySQL - https://youtu.be/yPu6qV5byu4 ►► PHP - https://youtu.be/7TF00hJI78Y ►► Kotlin - https://youtu.be/H_oGi8uuDpA ►► C# - https://youtu.be/lisiwUZJXqQ ►► JavaScript - https://youtu.be/fju9ii8YsGs

detail
{'title': 'PHP Programming', 'heatmap': [{'end': 109.643, 'start': 86.474, 'weight': 0.7}, {'end': 306.585, 'start': 279.91, 'weight': 0.727}, {'end': 501.431, 'start': 410.822, 'weight': 0.875}, {'end': 1388.614, 'start': 1342.796, 'weight': 0.836}, {'end': 1456.135, 'start': 1430.601, 'weight': 1}, {'end': 1609.104, 'start': 1581.678, 'weight': 0.902}], 'summary': "Tutorial 'php programming' covers a comprehensive php tutorial teaching the entire language, including setup of a basic html file, form handling, and post message use, as well as php basics, date formatting, form input, variable operations, conditional statements, looping with while and for, printf, and creation of functions.", 'chapters': [{'end': 79.788, 'segs': [{'end': 25.684, 'src': 'embed', 'start': 0.109, 'weight': 0, 'content': [{'end': 7.419, 'text': 'Well hello Internet! Many of you guys have asked me to do a PHP tutorial like I did with JavaScript and Java and so here it is.', 'start': 0.109, 'duration': 7.31}, {'end': 12.546, 'text': 'In this tutorial I will teach pretty much the entire PHP language in one video.', 'start': 7.579, 'duration': 4.967}, {'end': 14.528, 'text': "So I have a lot to do, so let's get into it!.", 'start': 12.666, 'duration': 1.862}, {'end': 19.081, 'text': 'okay, so this is going to be the basic format for this video tutorial.', 'start': 15.379, 'duration': 3.702}, {'end': 21.202, 'text': 'over here on the left i have a basic text editor.', 'start': 19.081, 'duration': 2.121}, {'end': 25.684, 'text': 'over here on the right i have google chrome and it is going to run everything for us.', 'start': 21.202, 'duration': 4.482}], 'summary': 'Php tutorial covering entire language in one video.', 'duration': 25.575, 'max_score': 0.109, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/7TF00hJI78Y/pics/7TF00hJI78Y109.jpg'}, {'end': 91.378, 'src': 'embed', 'start': 64.915, 'weight': 1, 'content': [{'end': 70.1, 'text': 'versus using the get method, which is going to send the data entered by appending it to the end of the URL.', 'start': 64.915, 'duration': 5.185}, {'end': 77.606, 'text': 'I am proposing that everybody watching this video knows HTML, but if not, I have a link in the description underneath the video to my HTML tutorial.', 'start': 70.18, 'duration': 7.426}, {'end': 79.788, 'text': 'You learned HTML in about 15 minutes with that one.', 'start': 77.626, 'duration': 2.162}, {'end': 86.293, 'text': 'Then I have a basic table here and name and address and the ability to input this information.', 'start': 79.888, 'duration': 6.405}, {'end': 88.575, 'text': 'And then at the very bottom here, I have a submit button.', 'start': 86.474, 'duration': 2.101}, {'end': 89.656, 'text': 'So very, very simple.', 'start': 88.755, 'duration': 0.901}, {'end': 91.378, 'text': "So let's start writing the PHP code.", 'start': 89.816, 'duration': 1.562}], 'summary': 'Demonstrating html form and proposing php code.', 'duration': 26.463, 'max_score': 64.915, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/7TF00hJI78Y/pics/7TF00hJI78Y64915.jpg'}], 'start': 0.109, 'title': 'Learning php language', 'summary': 'Covers a comprehensive php tutorial, teaching the entire language in one video, including setup of a basic html file, form handling, and use of post message, with a reference to an html tutorial for beginners.', 'chapters': [{'end': 79.788, 'start': 0.109, 'title': 'Php tutorial: learn the entire language', 'summary': 'Covers a comprehensive php tutorial where the entire language is taught in one video, including the setup of a basic html file, form handling, and use of post message, with a reference to an html tutorial for beginners.', 'duration': 79.679, 'highlights': ['The chapter encompasses a comprehensive PHP tutorial teaching the entire language in one video. The tutorial aims to cover the entire PHP language in one video, including setup and execution of a basic html file, form handling, and use of post message for data input.', 'A reference to an HTML tutorial for beginners is provided in the video description. The video description includes a link to an HTML tutorial for beginners, offering a quick 15-minute HTML learning resource.']}], 'duration': 79.679, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/7TF00hJI78Y/pics/7TF00hJI78Y109.jpg', 'highlights': ['The tutorial aims to cover the entire PHP language in one video, including setup and execution of a basic html file, form handling, and use of post message for data input.', 'A reference to an HTML tutorial for beginners is provided in the video description, offering a quick 15-minute HTML learning resource.']}, {'end': 283.992, 'segs': [{'end': 139.401, 'src': 'heatmap', 'start': 86.474, 'weight': 0, 'content': [{'end': 88.575, 'text': 'And then at the very bottom here, I have a submit button.', 'start': 86.474, 'duration': 2.101}, {'end': 89.656, 'text': 'So very, very simple.', 'start': 88.755, 'duration': 0.901}, {'end': 91.378, 'text': "So let's start writing the PHP code.", 'start': 89.816, 'duration': 1.562}, {'end': 98.036, 'text': "Okay, so as you can see here, it is still HTML even though we're creating PHP files here.", 'start': 92.253, 'duration': 5.783}, {'end': 102.339, 'text': 'And you basically just embed PHP code between tags.', 'start': 98.477, 'duration': 3.862}, {'end': 105.541, 'text': 'And those tags would be PHP, just like this.', 'start': 102.879, 'duration': 2.662}, {'end': 109.643, 'text': 'And then it would end at the bottom with a question mark and a closing tag.', 'start': 105.841, 'duration': 3.802}, {'end': 111.064, 'text': "And it's just as simple as that.", 'start': 109.823, 'duration': 1.241}, {'end': 117.147, 'text': "Now one thing to remember is the PHP code that you write here in this file isn't going to show if the user tries to view source.", 'start': 111.204, 'duration': 5.943}, {'end': 121.87, 'text': "And very, very important, you're going to have to put a semicolon to finish every PHP statement.", 'start': 117.667, 'duration': 4.203}, {'end': 128.193, 'text': "Now, of course, if you have multi-line comments, you're not going to have to put a semicolon after those.", 'start': 122.19, 'duration': 6.003}, {'end': 130.875, 'text': 'And also you have single line comments.', 'start': 128.674, 'duration': 2.201}, {'end': 134.918, 'text': "And also there's another single line comment, which is just the number sign.", 'start': 131.276, 'duration': 3.642}, {'end': 135.999, 'text': 'So just another.', 'start': 135.058, 'duration': 0.941}, {'end': 139.401, 'text': 'Okay, so those are the different types of comments you can use inside of PHP.', 'start': 136.019, 'duration': 3.382}], 'summary': 'Introduction to embedding php code in html, including syntax and comments usage.', 'duration': 59.513, 'max_score': 86.474, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/7TF00hJI78Y/pics/7TF00hJI78Y86474.jpg'}, {'end': 207.133, 'src': 'embed', 'start': 176.781, 'weight': 3, 'content': [{'end': 179.223, 'text': 'and you can see that those showed up here on the right side of the screen.', 'start': 176.781, 'duration': 2.442}, {'end': 186.566, 'text': 'If, however, I was going to use single quotes, I would not be able to do this, because single quotes ignore escape sequences,', 'start': 179.483, 'duration': 7.083}, {'end': 192.949, 'text': "and you're also not going to be able to print out variables directly inside of this statement with the echo.", 'start': 186.566, 'duration': 6.383}, {'end': 194.53, 'text': "I'm going to show you that here in a moment.", 'start': 193.289, 'duration': 1.241}, {'end': 199.751, 'text': "Let's do something right here out of the gate that's a little bit interesting just to show you how cool PHP can be.", 'start': 194.65, 'duration': 5.101}, {'end': 204.173, 'text': "Let's go and print out all types of date information onto the screen.", 'start': 200.011, 'duration': 4.162}, {'end': 207.133, 'text': "I'm going to go date default time zone set.", 'start': 204.393, 'duration': 2.74}], 'summary': 'The transcript discusses php syntax and limitations, as well as demonstrating how to print date information on the screen.', 'duration': 30.352, 'max_score': 176.781, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/7TF00hJI78Y/pics/7TF00hJI78Y176781.jpg'}], 'start': 79.888, 'title': 'Php basics and date formatting', 'summary': 'Covers php basics including input forms, echo statements, and comments, and demonstrates date formatting using php to display various date and time information in specific patterns, including milliseconds and time zone.', 'chapters': [{'end': 194.53, 'start': 79.888, 'title': 'Php basics: input forms and echo statements', 'summary': 'Covers the basics of writing php code within html files, including embedding php code between tags, using echo statements to output data onto the screen, and different types of comments that can be used inside php, along with the significance of using double and single quotes for echo statements.', 'duration': 114.642, 'highlights': ['PHP code can be embedded within HTML files using PHP tags, and it can be used to create input forms and submit buttons. The chapter discusses the process of embedding PHP code between tags in HTML files to create input forms and submit buttons.', 'The importance of using semicolons to finish every PHP statement and the exception for multi-line comments is explained. The significance of using semicolons to conclude every PHP statement is highlighted, along with exceptions for multi-line comments.', 'The different types of comments that can be used inside PHP, including single line comments and multi-line comments, are discussed. The chapter covers the various types of comments that can be utilized within PHP, such as single line comments and multi-line comments.', 'The utilization of echo statements to output data onto the screen, along with the distinction between using double quotes and single quotes for echo statements, is explained. The usage of echo statements to display data on the screen is detailed, including the distinction between using double quotes and single quotes, along with the ability of double quotes to utilize escape sequences.']}, {'end': 283.992, 'start': 194.65, 'title': 'Php date formatting', 'summary': 'Demonstrates how to use php to format and print various date information, including hour, minutes, seconds, day, month, year, and time zone, in a specific pattern, ultimately displaying the date and time in milliseconds, p.m., saturday august 19th 2014, utc.', 'duration': 89.342, 'highlights': ['The chapter showcases the usage of PHP to format and print various date information, including hour, minutes, seconds, day, month, year, and time zone, using specific symbols to define the format, ultimately demonstrating the display of the date and time in milliseconds, p.m., Saturday August 19th 2014, UTC.', 'The demonstration includes the utilization of echo and date functions to display the desired date and time format, showcasing the practical implementation of PHP for date formatting and manipulation.', 'The code for the demonstrated PHP date formatting is made available in the video description for reference and further practice.']}], 'duration': 204.104, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/7TF00hJI78Y/pics/7TF00hJI78Y79888.jpg', 'highlights': ['The chapter covers embedding PHP code in HTML files to create input forms and submit buttons.', 'The significance of using semicolons to conclude every PHP statement is highlighted.', 'The chapter discusses various types of comments that can be utilized within PHP.', 'The usage of echo statements to display data on the screen is detailed, including the distinction between using double quotes and single quotes.']}, {'end': 733.177, 'segs': [{'end': 306.585, 'src': 'embed', 'start': 284.272, 'weight': 0, 'content': [{'end': 293.095, 'text': 'Now, whenever we look back at our HTML here, you can see that I have the names defined for username, street address, and city address.', 'start': 284.272, 'duration': 8.823}, {'end': 294.875, 'text': 'Well, they enter that information.', 'start': 293.435, 'duration': 1.44}, {'end': 300.562, 'text': "How exactly am I going to be able to go in and grab it and use it inside my PHP code? Well, it's rather easy.", 'start': 294.956, 'duration': 5.606}, {'end': 306.585, 'text': "I'm going to put a dollar sign in here, which is how you start all of your variable names, which is where you're going to store your information.", 'start': 300.602, 'duration': 5.983}], 'summary': 'Using php to store user information with variable names.', 'duration': 22.313, 'max_score': 284.272, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/7TF00hJI78Y/pics/7TF00hJI78Y284272.jpg'}, {'end': 362.048, 'src': 'embed', 'start': 335.362, 'weight': 1, 'content': [{'end': 341.41, 'text': "Basically, they're all going to start off with dollar signs, and then the very first letter here is going to have to be a letter,", 'start': 335.362, 'duration': 6.048}, {'end': 345.816, 'text': "and then thereafter you're going to be able to use letters, numbers or underscores to define them.", 'start': 341.41, 'duration': 4.406}, {'end': 354.542, 'text': "Another thing that's important is user's name is going to be different than user's name with a lowercase n because variable names are case sensitive.", 'start': 346.016, 'duration': 8.526}, {'end': 358.245, 'text': 'And another thing that might be really weird is, whenever you create a variable,', 'start': 354.703, 'duration': 3.542}, {'end': 362.048, 'text': 'it is automatically going to be given a data type whenever it receives a value.', 'start': 358.245, 'duration': 3.803}], 'summary': 'Variables start with $ and letter, can use letters, numbers, or underscores, case sensitive, and automatic data typing.', 'duration': 26.686, 'max_score': 335.362, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/7TF00hJI78Y/pics/7TF00hJI78Y335362.jpg'}, {'end': 401.757, 'src': 'embed', 'start': 367.433, 'weight': 3, 'content': [{'end': 373.038, 'text': 'afterwards, floats, which are going to be decimal numbers, strings, which are going to be just a series of characters, booleans,', 'start': 367.433, 'duration': 5.605}, {'end': 376.261, 'text': 'which have the value of true or false arrays, or objects.', 'start': 373.038, 'duration': 3.223}, {'end': 380.644, 'text': 'And arrays are just boxes inside of boxes, a whole bunch of different items inside of those.', 'start': 376.481, 'duration': 4.163}, {'end': 383.067, 'text': "And we'll get more into that later on in the tutorial.", 'start': 380.925, 'duration': 2.142}, {'end': 387.631, 'text': "And if you're wondering, by default, a variable will get the value of null.", 'start': 383.347, 'duration': 4.284}, {'end': 390.032, 'text': 'That pretty much covers everything about variables.', 'start': 388.191, 'duration': 1.841}, {'end': 395.795, 'text': "And let's go and echo some more information out on a screen, like our user's name that the users type in there.", 'start': 390.612, 'duration': 5.183}, {'end': 397.996, 'text': "So you just go user's name, just like that.", 'start': 395.975, 'duration': 2.021}, {'end': 398.956, 'text': 'And there it shows up.', 'start': 398.216, 'duration': 0.74}, {'end': 401.757, 'text': 'Now you can do something called string concatenation.', 'start': 399.256, 'duration': 2.501}], 'summary': 'Introduction to data types and variables in programming.', 'duration': 34.324, 'max_score': 367.433, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/7TF00hJI78Y/pics/7TF00hJI78Y367433.jpg'}, {'end': 501.431, 'src': 'heatmap', 'start': 410.822, 'weight': 0.875, 'content': [{'end': 415.924, 'text': 'I could then just put a period inside of here, followed by whatever I want to show on our screen.', 'start': 410.822, 'duration': 5.102}, {'end': 420.488, 'text': "then let's say I want to do street address and city address.", 'start': 416.184, 'duration': 4.304}, {'end': 422.089, 'text': 'make sure you have a lowercase,', 'start': 420.488, 'duration': 1.601}, {'end': 428.554, 'text': 'a right there and then save this jump over here and there you can see it printed everything out on the screen and also put the line breaks inside of there.', 'start': 422.089, 'duration': 6.465}, {'end': 437.421, 'text': "another thing you can do with text is use what's called a here doc syntax, which is basically let's just come in here and create a basic string.", 'start': 428.554, 'duration': 8.867}, {'end': 443.946, 'text': "what you could do is have your string go over multiple lines and all you're gonna have to do is put these Little sideways carrots inside of here.", 'start': 437.421, 'duration': 6.525}, {'end': 448.189, 'text': "Then you're going to have to define pretty much anything that won't show up in your string.", 'start': 444.026, 'duration': 4.163}, {'end': 454.194, 'text': "Then what this is going to allow you to do is go the customer's name is and just keep going.", 'start': 448.309, 'duration': 5.885}, {'end': 458.917, 'text': "And then you just type in user's name and they live at.", 'start': 454.374, 'duration': 4.543}, {'end': 463.14, 'text': 'And then we type in street address in city address.', 'start': 459.157, 'duration': 3.983}, {'end': 465.762, 'text': "And then you could throw your break statements in there if you'd like.", 'start': 463.16, 'duration': 2.602}, {'end': 468.224, 'text': 'And at the very end, you have to make sure you do this.', 'start': 465.962, 'duration': 2.262}, {'end': 470.165, 'text': "Make sure there's no white space before this.", 'start': 468.284, 'duration': 1.881}, {'end': 472.867, 'text': "And then you're going to type in EOD, exactly what you have above.", 'start': 470.185, 'duration': 2.682}, {'end': 476.77, 'text': 'And then you could just come in here simply and go echo and string.', 'start': 473.107, 'duration': 3.663}, {'end': 478.652, 'text': "And there you can see, customer's name is Derek.", 'start': 476.79, 'duration': 1.862}, {'end': 481.053, 'text': 'And they live at 123 Main Street in Derry.', 'start': 478.992, 'duration': 2.061}, {'end': 482.735, 'text': 'Come and get rid of some of this stuff.', 'start': 481.314, 'duration': 1.421}, {'end': 485.777, 'text': 'Another thing you can do, of course, is define constants.', 'start': 482.995, 'duration': 2.782}, {'end': 488.239, 'text': 'And they are pretty much exactly what you think.', 'start': 486.137, 'duration': 2.102}, {'end': 490.881, 'text': 'They are values that cannot be changed.', 'start': 488.339, 'duration': 2.542}, {'end': 493.483, 'text': 'So if I want to put pi inside of here, there we go.', 'start': 491.141, 'duration': 2.342}, {'end': 501.431, 'text': 'And then I would simply be able to come in here anytime I want and go echo the value of pi is and then uppercase.', 'start': 493.823, 'duration': 7.608}], 'summary': 'Demonstrates using text, line breaks, and constants in php for output.', 'duration': 90.609, 'max_score': 410.822, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/7TF00hJI78Y/pics/7TF00hJI78Y410822.jpg'}, {'end': 448.189, 'src': 'embed', 'start': 422.089, 'weight': 5, 'content': [{'end': 428.554, 'text': 'a right there and then save this jump over here and there you can see it printed everything out on the screen and also put the line breaks inside of there.', 'start': 422.089, 'duration': 6.465}, {'end': 437.421, 'text': "another thing you can do with text is use what's called a here doc syntax, which is basically let's just come in here and create a basic string.", 'start': 428.554, 'duration': 8.867}, {'end': 443.946, 'text': "what you could do is have your string go over multiple lines and all you're gonna have to do is put these Little sideways carrots inside of here.", 'start': 437.421, 'duration': 6.525}, {'end': 448.189, 'text': "Then you're going to have to define pretty much anything that won't show up in your string.", 'start': 444.026, 'duration': 4.163}], 'summary': 'Demonstrating text manipulation, including syntax for multi-line strings and special characters.', 'duration': 26.1, 'max_score': 422.089, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/7TF00hJI78Y/pics/7TF00hJI78Y422089.jpg'}, {'end': 506.536, 'src': 'embed', 'start': 476.79, 'weight': 6, 'content': [{'end': 478.652, 'text': "And there you can see, customer's name is Derek.", 'start': 476.79, 'duration': 1.862}, {'end': 481.053, 'text': 'And they live at 123 Main Street in Derry.', 'start': 478.992, 'duration': 2.061}, {'end': 482.735, 'text': 'Come and get rid of some of this stuff.', 'start': 481.314, 'duration': 1.421}, {'end': 485.777, 'text': 'Another thing you can do, of course, is define constants.', 'start': 482.995, 'duration': 2.782}, {'end': 488.239, 'text': 'And they are pretty much exactly what you think.', 'start': 486.137, 'duration': 2.102}, {'end': 490.881, 'text': 'They are values that cannot be changed.', 'start': 488.339, 'duration': 2.542}, {'end': 493.483, 'text': 'So if I want to put pi inside of here, there we go.', 'start': 491.141, 'duration': 2.342}, {'end': 501.431, 'text': 'And then I would simply be able to come in here anytime I want and go echo the value of pi is and then uppercase.', 'start': 493.823, 'duration': 7.608}, {'end': 504.293, 'text': 'And you would want to use uppercase with all your constants.', 'start': 501.531, 'duration': 2.762}, {'end': 506.536, 'text': 'And there you can see that it printed out just like that.', 'start': 504.314, 'duration': 2.222}], 'summary': 'Transcript discusses defining constants and accessing them, emphasizing the use of uppercase and the example of pi.', 'duration': 29.746, 'max_score': 476.79, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/7TF00hJI78Y/pics/7TF00hJI78Y476790.jpg'}, {'end': 554.28, 'src': 'embed', 'start': 526.293, 'weight': 7, 'content': [{'end': 534.999, 'text': "So let's do a subtraction and let's do a multiplication, which is a star and let's do a division and modulus, which is going to return.", 'start': 526.293, 'duration': 8.706}, {'end': 536.961, 'text': 'the remainder of a division.', 'start': 535.379, 'duration': 1.582}, {'end': 539.283, 'text': 'And of course change these guys over here as well.', 'start': 537.161, 'duration': 2.122}, {'end': 541.206, 'text': 'And then throw in another break statement.', 'start': 539.484, 'duration': 1.722}, {'end': 545.771, 'text': "Another thing you can do also is let's say you wanted to cast to an integer.", 'start': 541.426, 'duration': 4.345}, {'end': 554.28, 'text': "So let's come in here and if we do this division here it's going to come back two and a half of course because five divided by two is two and a half.", 'start': 545.971, 'duration': 8.309}], 'summary': 'Demonstrates arithmetic operations in a programming language.', 'duration': 27.987, 'max_score': 526.293, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/7TF00hJI78Y/pics/7TF00hJI78Y526293.jpg'}, {'end': 647.695, 'src': 'embed', 'start': 618.64, 'weight': 8, 'content': [{'end': 620.963, 'text': 'And there you can see it shows 15 on the screen.', 'start': 618.64, 'duration': 2.323}, {'end': 624.528, 'text': "And of course, you're going to be able to do that not only with the plus,", 'start': 621.243, 'duration': 3.285}, {'end': 631.156, 'text': "but you're also going to be able to do it with the minus and multiplication and division and modulus.", 'start': 624.528, 'duration': 6.628}, {'end': 635.04, 'text': 'So those are some shortcut ways to add numbers to themselves.', 'start': 631.636, 'duration': 3.404}, {'end': 640.186, 'text': 'Another shortcut we can have here is we can auto increment by one very, very easily.', 'start': 635.28, 'duration': 4.906}, {'end': 642.048, 'text': "There's actually two ways to do it though.", 'start': 640.647, 'duration': 1.401}, {'end': 647.695, 'text': "So let's go in here and let's just do a random number is equal to and show that on our screen.", 'start': 642.289, 'duration': 5.406}], 'summary': 'Demonstrates shortcuts for arithmetic operations and auto-increment, displaying 15 on the screen.', 'duration': 29.055, 'max_score': 618.64, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/7TF00hJI78Y/pics/7TF00hJI78Y618640.jpg'}], 'start': 284.272, 'title': 'Using php for form input and variable operations', 'summary': 'Covers retrieving user input from html forms using php, including defining variable names, using the post method, and understanding variable types. it also discusses php basics such as variables, string concatenation, defining constants, arithmetic operations, and shortcut methods for incrementing and referencing variables.', 'chapters': [{'end': 383.067, 'start': 284.272, 'title': 'Using php to retrieve user input', 'summary': 'Discusses how to retrieve user input from html forms using php, including defining variable names, using the post method, and understanding variable types, such as integers, floats, strings, booleans, arrays, and objects.', 'duration': 98.795, 'highlights': ['The process of retrieving user input from HTML forms using PHP involves defining variable names, utilizing the post method, and understanding variable types, such as integers, floats, strings, booleans, arrays, and objects.', 'Variable names in PHP start with a dollar sign and must begin with a letter, followed by letters, numbers, or underscores, and are case sensitive.', 'The post method in PHP is used to access user input from HTML forms, allowing retrieval of data by referencing the defined variable names.', 'Variable data types in PHP include integers (whole numbers), floats (decimal numbers), strings (series of characters), booleans (true or false), arrays, and objects, with further details to be covered in the tutorial.']}, {'end': 733.177, 'start': 383.347, 'title': 'Php variables and operations', 'summary': 'Covers the basics of variables, string concatenation, using heredoc syntax for multi-line strings, defining constants, performing arithmetic operations, and utilizing shortcut methods for incrementing and referencing variables in php.', 'duration': 349.83, 'highlights': ['The chapter covers the basics of variables It explains that by default, a variable will get the value of null.', 'Using heredoc syntax for multi-line strings It demonstrates how to use heredoc syntax for creating multi-line strings and mentions the need to define the ending sequence and avoid white space.', 'Defining constants It explains the concept of constants as values that cannot be changed and provides an example of defining and echoing the value of pi.', 'Performing arithmetic operations It demonstrates various arithmetic operations such as addition, subtraction, multiplication, division, and modulus, along with casting to integer and other data types.', "Utilizing shortcut methods for incrementing and referencing variables in PHP It showcases shortcut methods like 'plus equal' for adding values to variables and explains the difference between using 'plus plus' before and after a variable name for auto-incrementing."]}], 'duration': 448.905, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/7TF00hJI78Y/pics/7TF00hJI78Y284272.jpg', 'highlights': ['The process of retrieving user input from HTML forms using PHP involves defining variable names, utilizing the post method, and understanding variable types, such as integers, floats, strings, booleans, arrays, and objects.', 'Variable names in PHP start with a dollar sign and must begin with a letter, followed by letters, numbers, or underscores, and are case sensitive.', 'The post method in PHP is used to access user input from HTML forms, allowing retrieval of data by referencing the defined variable names.', 'Variable data types in PHP include integers (whole numbers), floats (decimal numbers), strings (series of characters), booleans (true or false), arrays, and objects, with further details to be covered in the tutorial.', 'The chapter covers the basics of variables It explains that by default, a variable will get the value of null.', 'Using heredoc syntax for multi-line strings It demonstrates how to use heredoc syntax for creating multi-line strings and mentions the need to define the ending sequence and avoid white space.', 'Defining constants It explains the concept of constants as values that cannot be changed and provides an example of defining and echoing the value of pi.', 'Performing arithmetic operations It demonstrates various arithmetic operations such as addition, subtraction, multiplication, division, and modulus, along with casting to integer and other data types.', "Utilizing shortcut methods for incrementing and referencing variables in PHP It showcases shortcut methods like 'plus equal' for adding values to variables and explains the difference between using 'plus plus' before and after a variable name for auto-incrementing."]}, {'end': 1115.813, 'segs': [{'end': 758.162, 'src': 'embed', 'start': 733.277, 'weight': 1, 'content': [{'end': 740.719, 'text': 'So if the value for random number changes, this is going to change as well because I went in here and turned this into a reference to random number.', 'start': 733.277, 'duration': 7.442}, {'end': 742.661, 'text': "So I'm covering pretty much everything here.", 'start': 740.959, 'duration': 1.702}, {'end': 745.585, 'text': "Another thing, let's go in and talk about if statements.", 'start': 742.681, 'duration': 2.904}, {'end': 751.513, 'text': 'Now there are many different ways to compare values inside of PHP, just like most other languages.', 'start': 745.906, 'duration': 5.607}, {'end': 758.162, 'text': 'You have equal to, you have not equal to, you have less than, you have greater than, you have less than or equal to.', 'start': 751.573, 'duration': 6.589}], 'summary': 'Code references random number and covers various comparison methods in php.', 'duration': 24.885, 'max_score': 733.277, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/7TF00hJI78Y/pics/7TF00hJI78Y733277.jpg'}, {'end': 852.111, 'src': 'embed', 'start': 823.458, 'weight': 0, 'content': [{'end': 826.28, 'text': 'And if we execute it, you can see that 5 is not equal to 10.', 'start': 823.458, 'duration': 2.822}, {'end': 835.346, 'text': 'Now what I started to allude to there is the situations in which we would want to actually check multiple different conditions and perform multiple different operations based off of that.', 'start': 826.28, 'duration': 9.066}, {'end': 841.408, 'text': "So let's say we have a grocery store and it offers discounts based off of the number of purchases.", 'start': 835.566, 'duration': 5.842}, {'end': 844.909, 'text': "So let's say somebody went in and wanted to purchase four oranges.", 'start': 841.708, 'duration': 3.201}, {'end': 846.829, 'text': 'Of course, put the equal sign inside of there.', 'start': 844.929, 'duration': 1.9}, {'end': 850.11, 'text': 'And then another thing the store sells is bananas.', 'start': 847.149, 'duration': 2.961}, {'end': 852.111, 'text': "And let's say somebody wanted to buy 36 bananas.", 'start': 850.51, 'duration': 1.601}], 'summary': 'Demonstrating conditional operations with examples, including grocery store discounts based on purchases of oranges and bananas.', 'duration': 28.653, 'max_score': 823.458, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/7TF00hJI78Y/pics/7TF00hJI78Y823458.jpg'}, {'end': 909.813, 'src': 'embed', 'start': 884.605, 'weight': 2, 'content': [{'end': 889.746, 'text': "And these are called logical operators, these guys right here, and I'm going to show you the other two logical operators in a second.", 'start': 884.605, 'duration': 5.141}, {'end': 893.527, 'text': "And we'll go num of bananas, greater than 30.", 'start': 890.106, 'duration': 3.421}, {'end': 899.329, 'text': "So if they want to buy more than 25 oranges and more than 30 bananas, we're going to give them a discount.", 'start': 893.527, 'duration': 5.802}, {'end': 902.53, 'text': "And in this situation, we're just going to echo out on the screen, 25% discount.", 'start': 899.829, 'duration': 2.701}, {'end': 905.131, 'text': 'right like that.', 'start': 904.27, 'duration': 0.861}, {'end': 909.813, 'text': "let's say they want to offer other discounts, however, in situations in which they don't buy enough.", 'start': 905.131, 'duration': 4.682}], 'summary': 'Teaching logical operators and giving discounts based on quantity: 25% discount for buying more than 25 oranges and 30 bananas.', 'duration': 25.208, 'max_score': 884.605, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/7TF00hJI78Y/pics/7TF00hJI78Y884605.jpg'}, {'end': 1033.824, 'src': 'embed', 'start': 1005.464, 'weight': 3, 'content': [{'end': 1007.225, 'text': 'And it is called the ternary operator.', 'start': 1005.464, 'duration': 1.761}, {'end': 1011.448, 'text': 'And basically the way it works is you have your condition followed by a question mark.', 'start': 1007.265, 'duration': 4.183}, {'end': 1018.754, 'text': "And then you're going to have the value that's going to be assigned if true or value if false is going to be assigned.", 'start': 1011.589, 'duration': 7.165}, {'end': 1024.718, 'text': "and the basic way that this is going to look is let's come in here and let's say we have biggest number,", 'start': 1019.174, 'duration': 5.544}, {'end': 1028.7, 'text': "we're going to store inside of here and equal to, then we're going to have our condition.", 'start': 1024.718, 'duration': 3.982}, {'end': 1030.442, 'text': "so we're going to have 15 greater than 10.", 'start': 1028.7, 'duration': 1.742}, {'end': 1033.824, 'text': 'of course these could be variables and not just straight numbers.', 'start': 1030.442, 'duration': 3.382}], 'summary': 'The ternary operator assigns a value based on a condition, like 15 > 10.', 'duration': 28.36, 'max_score': 1005.464, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/7TF00hJI78Y/pics/7TF00hJI78Y1005464.jpg'}, {'end': 1073.455, 'src': 'embed', 'start': 1043.589, 'weight': 4, 'content': [{'end': 1045.051, 'text': 'And there you can see 15 showed up.', 'start': 1043.589, 'duration': 1.462}, {'end': 1049.016, 'text': 'Another way we could do conditions inside of PHP is using a switch statement.', 'start': 1045.352, 'duration': 3.664}, {'end': 1054.001, 'text': "And you're going to use a switch statement whenever you have a very limited number of possible values.", 'start': 1049.276, 'duration': 4.725}, {'end': 1061.289, 'text': "So let's say we want to make different decisions or print different things based off of the username that gets passed in our HTML.", 'start': 1054.321, 'duration': 6.968}, {'end': 1066.214, 'text': "Well, you're going to type in the variable that you're going to be checking for, user's name in this situation.", 'start': 1061.449, 'duration': 4.765}, {'end': 1068.234, 'text': "And then you're going to type in case.", 'start': 1066.474, 'duration': 1.76}, {'end': 1073.455, 'text': "The user's name has the value of Derek, and you can use doubles or strings or anything inside of here.", 'start': 1068.614, 'duration': 4.841}], 'summary': 'Using switch statement in php with limited possible values, e.g. 15 showed up.', 'duration': 29.866, 'max_score': 1043.589, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/7TF00hJI78Y/pics/7TF00hJI78Y1043589.jpg'}], 'start': 733.277, 'title': 'Php conditional statements', 'summary': 'Covers php comparison operators and logical operators to execute different codes based on conditions, including applying discounts based on purchases, and explains the ternary operator and switch statement with examples of value assignment and decision-making based on limited possible values.', 'chapters': [{'end': 1005.064, 'start': 733.277, 'title': 'Php comparison operators & if statements', 'summary': 'Covers the usage of comparison operators in php, including equal to, not equal to, less than, greater than, less than or equal to, and greater than or equal to, as well as logical operators such as and and not, in order to execute different codes based on different conditions, with an example of applying discounts based on the number of purchases in a grocery store.', 'duration': 271.787, 'highlights': ['Example of applying discounts based on the number of purchases in a grocery store The speaker provides an example of using if statements to check if a customer buys more than 25 oranges and 30 bananas to offer a 25% discount, and then using else if to check for other conditions and offer different discounts based on the quantity of purchases.', 'Usage of logical operators such as AND and NOT The explanation of using logical operators like AND to check multiple conditions simultaneously, and NOT to verify if a condition is not true, is provided with practical examples and code demonstrations.', "Explanation of various comparison operators in PHP The chapter thoroughly explains the usage of comparison operators such as equal to, not equal to, less than, greater than, less than or equal to, and greater than or equal to, along with less known operators like '===' and '!==' to compare values and types in PHP."]}, {'end': 1115.813, 'start': 1005.464, 'title': 'Php conditions and switch statement', 'summary': 'Explains the ternary operator and switch statement in php, where the ternary operator is used to assign values based on conditions, and the switch statement is used to make decisions based on a limited number of possible values, illustrated with an example of printing different messages based on the username.', 'duration': 110.349, 'highlights': ['The ternary operator is explained, demonstrating how it assigns values based on conditions, exemplified by storing the biggest number and using echo to display the result, with 15 as the output and 15 greater than 10 as the condition.', "The switch statement is introduced as a way to make different decisions based on a limited number of possible values, illustrated with examples of using case statements to print different messages based on the username passed in HTML, with 'hello Derek' displayed when the username is Derek and 'hello Sally' displayed when the username is Sally."]}], 'duration': 382.536, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/7TF00hJI78Y/pics/7TF00hJI78Y733277.jpg', 'highlights': ['Example of applying discounts based on the number of purchases in a grocery store', 'Explanation of various comparison operators in PHP', 'Usage of logical operators such as AND and NOT', 'The ternary operator is explained, demonstrating how it assigns values based on conditions', 'The switch statement is introduced as a way to make different decisions based on a limited number of possible values']}, {'end': 1712.837, 'segs': [{'end': 1140.915, 'src': 'embed', 'start': 1115.993, 'weight': 0, 'content': [{'end': 1122.759, 'text': "Now very often you're going to want to perform actions until a certain condition is met and a while loop works great for that.", 'start': 1115.993, 'duration': 6.766}, {'end': 1128.864, 'text': 'But one thing we have to do is first come in here and define some way for us to get out of the while loop.', 'start': 1122.979, 'duration': 5.885}, {'end': 1134.549, 'text': "And what we're going to do is we're going to continue incrementing the value for number until it is greater than 20.", 'start': 1129.065, 'duration': 5.484}, {'end': 1140.915, 'text': 'And of course this is going to have to be created or initialized or whatever you want to refer to it as outside of the while loop.', 'start': 1134.549, 'duration': 6.366}], 'summary': "Using while loop to increment 'number' until it's greater than 20.", 'duration': 24.922, 'max_score': 1115.993, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/7TF00hJI78Y/pics/7TF00hJI78Y1115993.jpg'}, {'end': 1388.614, 'src': 'heatmap', 'start': 1342.796, 'weight': 0.836, 'content': [{'end': 1345.737, 'text': 'And all I need to do is give it the array I want to cycle through.', 'start': 1342.796, 'duration': 2.941}, {'end': 1348.359, 'text': "And then don't put that little comma inside of there.", 'start': 1346.018, 'duration': 2.341}, {'end': 1350.12, 'text': "Instead, you're going to put as.", 'start': 1348.639, 'duration': 1.481}, {'end': 1357.804, 'text': 'And then I got to give it a temporary holding field or temporary variable, which each of these items is going to be stored in temporarily.', 'start': 1350.14, 'duration': 7.664}, {'end': 1360.768, 'text': 'And then I could do something like echo and friend.', 'start': 1357.984, 'duration': 2.784}, {'end': 1363.832, 'text': 'And there you can see I printed them all out on the screen all in one place.', 'start': 1361.108, 'duration': 2.724}, {'end': 1366.976, 'text': 'So that for each block is just for arrays.', 'start': 1364.212, 'duration': 2.764}, {'end': 1371.021, 'text': 'Another thing you could do is create key-valued pairs for the arrays,', 'start': 1367.336, 'duration': 3.685}, {'end': 1375.027, 'text': 'which is very much like all of the other arrays or this one array we created here.', 'start': 1371.021, 'duration': 4.006}, {'end': 1379.089, 'text': 'Except in this situation, this has the key of 0, or the index of 0.', 'start': 1375.347, 'duration': 3.742}, {'end': 1381.39, 'text': 'This has 1, this has 2, and this has 4.', 'start': 1379.089, 'duration': 2.301}, {'end': 1388.614, 'text': "If I wanted to define what the keys are going to be, I could do something like customer is equal to, and I'm going to create an array again.", 'start': 1381.39, 'duration': 7.224}], 'summary': 'Demonstrates iterating through arrays and creating key-value pairs in php.', 'duration': 45.818, 'max_score': 1342.796, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/7TF00hJI78Y/pics/7TF00hJI78Y1342796.jpg'}, {'end': 1375.027, 'src': 'embed', 'start': 1350.14, 'weight': 4, 'content': [{'end': 1357.804, 'text': 'And then I got to give it a temporary holding field or temporary variable, which each of these items is going to be stored in temporarily.', 'start': 1350.14, 'duration': 7.664}, {'end': 1360.768, 'text': 'And then I could do something like echo and friend.', 'start': 1357.984, 'duration': 2.784}, {'end': 1363.832, 'text': 'And there you can see I printed them all out on the screen all in one place.', 'start': 1361.108, 'duration': 2.724}, {'end': 1366.976, 'text': 'So that for each block is just for arrays.', 'start': 1364.212, 'duration': 2.764}, {'end': 1371.021, 'text': 'Another thing you could do is create key-valued pairs for the arrays,', 'start': 1367.336, 'duration': 3.685}, {'end': 1375.027, 'text': 'which is very much like all of the other arrays or this one array we created here.', 'start': 1371.021, 'duration': 4.006}], 'summary': 'Using temporary variables, echoing, and creating key-value pairs for arrays in programming.', 'duration': 24.887, 'max_score': 1350.14, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/7TF00hJI78Y/pics/7TF00hJI78Y1350140.jpg'}, {'end': 1463.28, 'src': 'heatmap', 'start': 1430.601, 'weight': 1, 'content': [{'end': 1431.922, 'text': 'Key-valued pairs.', 'start': 1430.601, 'duration': 1.321}, {'end': 1432.662, 'text': 'what is that there?', 'start': 1431.922, 'duration': 0.74}, {'end': 1442.146, 'text': 'And then I could go echo key, concatenate this and put in a colon, and then I could type in also my value and execute that over here,', 'start': 1432.682, 'duration': 9.464}, {'end': 1446.068, 'text': "and it's going to print out my name, my street and the city.", 'start': 1442.146, 'duration': 3.922}, {'end': 1449.73, 'text': "Another thing you're going to be able to do is combine arrays.", 'start': 1446.348, 'duration': 3.382}, {'end': 1450.831, 'text': 'This is so easy to do.', 'start': 1449.77, 'duration': 1.061}, {'end': 1456.135, 'text': "Let's just say we want to store this information in best friends, whether this makes sense or not.", 'start': 1451.352, 'duration': 4.783}, {'end': 1463.28, 'text': "So if I want to take the customer data and put it in best friends, like let's say I decided that 123 Main Street was a best friend, whatever.", 'start': 1456.375, 'duration': 6.905}], 'summary': 'Demonstration of key-value pairs and combining arrays for storing information.', 'duration': 32.679, 'max_score': 1430.601, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/7TF00hJI78Y/pics/7TF00hJI78Y1430601.jpg'}, {'end': 1614.126, 'src': 'heatmap', 'start': 1581.678, 'weight': 0.902, 'content': [{'end': 1584.038, 'text': "You'll see here in a second what it's going to print out on the screen.", 'start': 1581.678, 'duration': 2.36}, {'end': 1586.479, 'text': 'And there you can see it printed everything out there on our screen.', 'start': 1584.258, 'duration': 2.221}, {'end': 1588.139, 'text': "So that's multidimensional arrays.", 'start': 1586.639, 'duration': 1.5}, {'end': 1591.18, 'text': "Now there's a couple other very common array functions.", 'start': 1588.399, 'duration': 2.781}, {'end': 1592.84, 'text': "Let's say you wanted to sort your array.", 'start': 1591.22, 'duration': 1.62}, {'end': 1596.321, 'text': "Well, you would just type in, this is a function which we're going to get into later on.", 'start': 1592.88, 'duration': 3.441}, {'end': 1599.902, 'text': 'What you do is just type in sort, and inside of the brackets put your array name.', 'start': 1596.461, 'duration': 3.441}, {'end': 1602.322, 'text': 'And this is going to sort in ascending alphabetic order.', 'start': 1599.942, 'duration': 2.38}, {'end': 1609.104, 'text': "If you would come in here and put another comma in right there, and type in sort numeric, it'll sort in numerical order.", 'start': 1602.742, 'duration': 6.362}, {'end': 1614.126, 'text': "Or if you type in sort string, it's going to sort everything as if it is a string of characters.", 'start': 1609.424, 'duration': 4.702}], 'summary': 'Introduction to sorting arrays in programming, including ascending, numerical, and string sorting methods.', 'duration': 32.448, 'max_score': 1581.678, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/7TF00hJI78Y/pics/7TF00hJI78Y1581678.jpg'}, {'end': 1617.567, 'src': 'embed', 'start': 1586.639, 'weight': 2, 'content': [{'end': 1588.139, 'text': "So that's multidimensional arrays.", 'start': 1586.639, 'duration': 1.5}, {'end': 1591.18, 'text': "Now there's a couple other very common array functions.", 'start': 1588.399, 'duration': 2.781}, {'end': 1592.84, 'text': "Let's say you wanted to sort your array.", 'start': 1591.22, 'duration': 1.62}, {'end': 1596.321, 'text': "Well, you would just type in, this is a function which we're going to get into later on.", 'start': 1592.88, 'duration': 3.441}, {'end': 1599.902, 'text': 'What you do is just type in sort, and inside of the brackets put your array name.', 'start': 1596.461, 'duration': 3.441}, {'end': 1602.322, 'text': 'And this is going to sort in ascending alphabetic order.', 'start': 1599.942, 'duration': 2.38}, {'end': 1609.104, 'text': "If you would come in here and put another comma in right there, and type in sort numeric, it'll sort in numerical order.", 'start': 1602.742, 'duration': 6.362}, {'end': 1614.126, 'text': "Or if you type in sort string, it's going to sort everything as if it is a string of characters.", 'start': 1609.424, 'duration': 4.702}, {'end': 1617.567, 'text': 'A sort is going to sort the arrays with the keys.', 'start': 1614.586, 'duration': 2.981}], 'summary': 'Common array functions like sort can be used to alphabetically or numerically order arrays.', 'duration': 30.928, 'max_score': 1586.639, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/7TF00hJI78Y/pics/7TF00hJI78Y1586639.jpg'}, {'end': 1712.837, 'src': 'embed', 'start': 1683.501, 'weight': 3, 'content': [{'end': 1690.004, 'text': "And the number one way, I'm using string length here just to show you how the string changes based off of using these trim functions.", 'start': 1683.501, 'duration': 6.503}, {'end': 1691.125, 'text': "And I'm going to use trim.", 'start': 1690.344, 'duration': 0.781}, {'end': 1693.746, 'text': "That's going to get rid of all of the white space.", 'start': 1691.165, 'duration': 2.581}, {'end': 1697.168, 'text': 'And there you can see, the original string length was 29.', 'start': 1694.107, 'duration': 3.061}, {'end': 1700.15, 'text': 'After we got rid of all the white space on the left, it was 19.', 'start': 1697.168, 'duration': 2.982}, {'end': 1705.093, 'text': 'After we got rid of the white space on the right, it became 23 because there was more white space on the left than on the right.', 'start': 1700.15, 'duration': 4.943}, {'end': 1712.837, 'text': 'And then after we call it a full trim, which got rid of all of the white space on the left and the right, we have a total string length of 13.', 'start': 1705.393, 'duration': 7.444}], 'summary': 'Using trim functions reduced string length from 29 to 13.', 'duration': 29.336, 'max_score': 1683.501, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/7TF00hJI78Y/pics/7TF00hJI78Y1683501.jpg'}], 'start': 1115.993, 'title': 'Looping with while and for', 'summary': 'Explains the use of while and for loops in php, demonstrating incrementing values until greater than 20, printing 1 through 20 using a for loop, and handling arrays. it also covers php arrays and strings, including array manipulation, key-valued pairs, array comparison, multidimensional arrays, common array functions, string manipulation, trimming, and length calculation.', 'chapters': [{'end': 1320.504, 'start': 1115.993, 'title': 'Looping with while and for', 'summary': 'Explains the use of while and for loops to perform actions until a certain condition is met, demonstrating incrementing values until greater than 20 and printing 1 through 20, using a for loop in a more compact way, and handling arrays in php.', 'duration': 204.511, 'highlights': ["The chapter demonstrates incrementing the value for 'number' until it is greater than 20 and printing 1 through 20 using a while loop.", "It also explains performing the same actions with a for loop in a more compact way, defining the condition as number less than or equal to 20 and handling the increment and printing, including a conditional check for comma placement and loop termination using 'break' and 'exit'.", 'Additionally, it covers the concept of arrays, demonstrating the storage of multiple values in an array and accessing array elements for printing on the screen.']}, {'end': 1712.837, 'start': 1320.704, 'title': 'Php arrays and strings', 'summary': 'Explains php arrays and strings, covering key concepts such as array manipulation, key-valued pairs, array comparison, multidimensional arrays, and common array functions, as well as string manipulation, including trimming and length calculation.', 'duration': 392.133, 'highlights': ["Explains array manipulation, including adding new elements using index, using a for each statement to cycle through array items, and creating key-valued pairs for arrays. Demonstrates adding a new friend 'Steve' to the array and cycling through all array items using a for each statement.", "Discusses combining arrays, comparing arrays for equality, and creating multidimensional arrays. Illustrates combining arrays 'best friends' and 'customer', comparing arrays for equality, and creating a multidimensional array with customer names and zip codes.", 'Covers common array functions such as sorting arrays in ascending order, sorting numerically, sorting as string characters, and sorting by key names. Explains sorting arrays in ascending order, numerically, as string characters, and by key names.', 'Explains string manipulation, including creating random strings, trimming white space, and calculating string length. Demonstrates creating random strings, trimming white space from strings, and calculating string length.']}], 'duration': 596.844, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/7TF00hJI78Y/pics/7TF00hJI78Y1115993.jpg', 'highlights': ['Explains the use of while and for loops in php, demonstrating incrementing values until greater than 20, printing 1 through 20 using a for loop, and handling arrays.', "Explains performing the same actions with a for loop in a more compact way, defining the condition as number less than or equal to 20 and handling the increment and printing, including a conditional check for comma placement and loop termination using 'break' and 'exit'.", 'Covers common array functions such as sorting arrays in ascending order, sorting numerically, sorting as string characters, and sorting by key names. Explains sorting arrays in ascending order, numerically, as string characters, and by key names.', 'Explains string manipulation, including creating random strings, trimming white space, and calculating string length. Demonstrates creating random strings, trimming white space from strings, and calculating string length.', "Explains array manipulation, including adding new elements using index, using a for each statement to cycle through array items, and creating key-valued pairs for arrays. Demonstrates adding a new friend 'Steve' to the array and cycling through all array items using a for each statement."]}, {'end': 2167.744, 'segs': [{'end': 1737.409, 'src': 'embed', 'start': 1712.837, 'weight': 0, 'content': [{'end': 1719.941, 'text': "Now, I have been using echo for everything so far, but there's another way to print information on a screen, and that is called printf.", 'start': 1712.837, 'duration': 7.104}, {'end': 1726.004, 'text': "And you're going to use printf because it's going to allow you to format strings on your screen, just like echo does.", 'start': 1720.161, 'duration': 5.843}, {'end': 1730.966, 'text': "So let's go in here and show you the difference in what echo would look like versus printf.", 'start': 1726.324, 'duration': 4.642}, {'end': 1734.288, 'text': "You're going to be able to use all kinds of conversion codes to convert your data as well.", 'start': 1731.046, 'duration': 3.242}, {'end': 1737.409, 'text': "So with echo, I'm going to go the random string.", 'start': 1734.488, 'duration': 2.921}], 'summary': 'Introduction to using printf for formatting strings on the screen.', 'duration': 24.572, 'max_score': 1712.837, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/7TF00hJI78Y/pics/7TF00hJI78Y1712837.jpg'}, {'end': 1805.294, 'src': 'embed', 'start': 1779.544, 'weight': 2, 'content': [{'end': 1787.347, 'text': 'One thing that is very useful, though, with printf is printf is going to allow us to use conversion codes for decimals, for example.', 'start': 1779.544, 'duration': 7.803}, {'end': 1790.788, 'text': "So let's go decimal number is equal to 2.3456, whatever.", 'start': 1787.427, 'duration': 3.361}, {'end': 1794.53, 'text': 'Now we can go in here with printf.', 'start': 1793.149, 'duration': 1.381}, {'end': 1798.511, 'text': "You can do all kinds of other things with printf, but I'm going to keep this somewhat basic.", 'start': 1794.55, 'duration': 3.961}, {'end': 1801.492, 'text': "So let's go decimal number is equal to.", 'start': 1798.751, 'duration': 2.741}, {'end': 1805.294, 'text': "And then let's say I only wanted two decimal places to show up inside of here.", 'start': 1801.512, 'duration': 3.782}], 'summary': 'Using printf to format decimal numbers with specified precision.', 'duration': 25.75, 'max_score': 1779.544, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/7TF00hJI78Y/pics/7TF00hJI78Y1779544.jpg'}, {'end': 2137.497, 'src': 'embed', 'start': 2111.439, 'weight': 5, 'content': [{'end': 2116.364, 'text': 'And then you could do something like add numbers, which is going to be the numbers or the name of the function.', 'start': 2111.439, 'duration': 4.925}, {'end': 2122.868, 'text': "And then the different attributes that you're going to allow to be sent into this function to be executed.", 'start': 2116.664, 'duration': 6.204}, {'end': 2125.269, 'text': "And you're going to have your curly brackets again.", 'start': 2123.268, 'duration': 2.001}, {'end': 2130.833, 'text': 'And then you could have a return statement, which is going to return numbers after you can put any code inside of here.', 'start': 2125.63, 'duration': 5.203}, {'end': 2137.497, 'text': "But let's just say that we want to come in here and add these two numbers together and then return them to whoever calls for this function to execute.", 'start': 2131.033, 'duration': 6.464}], 'summary': 'Explanation of adding numbers to be returned in a function.', 'duration': 26.058, 'max_score': 2111.439, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/7TF00hJI78Y/pics/7TF00hJI78Y2111439.jpg'}], 'start': 1712.837, 'title': 'Printf and php basics', 'summary': 'Introduces the printf command as an alternative to echo for string formatting and data conversion. it also covers php basics, including formatting numbers, manipulating strings, and creating functions, with a demonstration of adding two numbers.', 'chapters': [{'end': 1779.284, 'start': 1712.837, 'title': 'Introduction to printf command', 'summary': 'Introduces the printf command as an alternative to echo for printing information on the screen, allowing for string formatting and data conversion, demonstrating how to use both echo and printf with a focus on string formatting.', 'duration': 66.447, 'highlights': ['The printf command is introduced as an alternative to echo for printing information on the screen, allowing for string formatting and data conversion, demonstrating how to use both echo and printf with a focus on string formatting.', 'The chapter emphasizes the use of printf for string formatting, showcasing the use of conversion codes and demonstrating how to display a string using printf, highlighting the difference between echo and printf for displaying strings on the screen.']}, {'end': 2167.744, 'start': 1779.544, 'title': 'Php basics and functions', 'summary': 'Covers the usage of printf in php, including formatting decimal numbers, converting data types, changing letter case in strings, converting strings to arrays and vice versa, comparing and manipulating strings, and creating and calling functions, concluding with a demonstration of a simple function to add two numbers.', 'duration': 388.2, 'highlights': ['highlight The chapter covers the usage of printf in PHP, including formatting decimal numbers, converting data types, changing letter case in strings, converting strings to arrays and vice versa, comparing and manipulating strings, and creating and calling functions, concluding with a demonstration of a simple function to add two numbers.', "highlight The printf function in PHP can be used to format decimal numbers with a specific number of decimal places, such as displaying two decimal places by using the format specifier '%.2f'.", "highlight Various conversion codes can be used in printf to convert data types, such as using 'B' for binary, 'C' for characters, and 's' for string to string or integer to hexadecimal conversions.", "highlight Functions in PHP can be created using the 'function' keyword, allowing for reusable code, and can be called with specific attributes to perform operations, such as adding two numbers together."]}], 'duration': 454.907, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/7TF00hJI78Y/pics/7TF00hJI78Y1712837.jpg', 'highlights': ['The chapter emphasizes the use of printf for string formatting, showcasing the use of conversion codes and demonstrating how to display a string using printf, highlighting the difference between echo and printf for displaying strings on the screen.', 'The printf command is introduced as an alternative to echo for printing information on the screen, allowing for string formatting and data conversion, demonstrating how to use both echo and printf with a focus on string formatting.', 'The chapter covers the usage of printf in PHP, including formatting decimal numbers, converting data types, changing letter case in strings, converting strings to arrays and vice versa, comparing and manipulating strings, and creating and calling functions, concluding with a demonstration of a simple function to add two numbers.', "The printf function in PHP can be used to format decimal numbers with a specific number of decimal places, such as displaying two decimal places by using the format specifier '%.2f'.", "Various conversion codes can be used in printf to convert data types, such as using 'B' for binary, 'C' for characters, and 's' for string to string or integer to hexadecimal conversions.", "Functions in PHP can be created using the 'function' keyword, allowing for reusable code, and can be called with specific attributes to perform operations, such as adding two numbers together."]}], 'highlights': ['The tutorial aims to cover the entire PHP language in one video, including setup and execution of a basic html file, form handling, and use of post message for data input.', 'The chapter covers embedding PHP code in HTML files to create input forms and submit buttons.', 'The process of retrieving user input from HTML forms using PHP involves defining variable names, utilizing the post method, and understanding variable types, such as integers, floats, strings, booleans, arrays, and objects.', 'The chapter emphasizes the use of printf for string formatting, showcasing the use of conversion codes and demonstrating how to display a string using printf, highlighting the difference between echo and printf for displaying strings on the screen.', 'Explains the use of while and for loops in php, demonstrating incrementing values until greater than 20, printing 1 through 20 using a for loop, and handling arrays.']}