title
PHP Programming Tutorial For Beginners | PHP Tutorial For Web Development | PHP Training | Edureka
description
🔥 PHP Certification Training (Use Code "𝐘𝐎𝐔𝐓𝐔𝐁𝐄𝟐𝟎"): https://www.edureka.co/search
This Edureka video will give you a complete understanding of PHP which is one of the most widely used scripting language for the backend logic. This video covers the following topics:
0:30 What is PHP?
1:14 What can you do with PHP?
2:55 Fundamental Syntax of PHP
3:18 PHP variables
4:02 PHP constants
4:25 Primitive data types
4:55 Reference data types - Arrays and functions
6:10 Conditional Statements (Loops)
9:38 Hands-on: Collecting form data using PHP
Check out our complete Youtube playlist here: https://goo.gl/gMFLx3
Do subscribe to our channel and hit the bell icon to never miss an update from us in the future.
Instagram: https://www.instagram.com/edureka_learning
Facebook: https://www.facebook.com/edurekaIN/
Twitter: https://twitter.com/edurekain
LinkedIn: https://www.linkedin.com/company/edureka
#PHP #PHPTutorial #PHP11 #PHPNewFeatures #LearnPHP #PHPOnlineTraining #PHPProgramming
-------------------------------------
How it Works?
1. This is a 7 Week Instructor-led Online Course, 45 hours of assignment and 20 hours of project work
2. We have a 24x7 One-on-One LIVE Technical Support to help you with any problems you might face or any clarifications you may require during the course.
3. At the end of the training, you will be working on a real-time project for which we will provide you a Grade and a Verifiable Certificate!
-------------------------------------
About the Course
Edureka's PHP & MySQL with MVC framework, will introduce attendees to PHP, MySQL and CakePHP MVC framework. The course will cover aspects of how to use PHP, MySQL along with CakePHP MVC framework to create powerful and easy to maintain database driven websites. The course will also cover Installation & Configuration of PHP, MySQL and CakePHP. Attendees will also get to implement one project towards the end of the course.
Why learn PHP & MySQL with MVC Frameworks?
PHP scripting and MySQL database are one of the worlds most popular open source techniques used to develop websites. Add an advantage of an MVC framework to it and you can develop powerful, dynamic and easy to maintain database driven websites. PHP, MySQL, and CakePHP are also platform independent i.e. You can easily port a website developed on a windows machine to a Linux based Apache web server with minimal to no changes. The CakePHP MVC architect also adds some additional security against threats like SQL injections, hacking etc.
-------------------------------------
Got a question on the topic? Please share it in the comment section below and our experts will answer it for you.
For more information, please write back to us at sales@edureka.co or call us at IND: 9606058406 / US: 18338555775 (toll free).
detail
{'title': 'PHP Programming Tutorial For Beginners | PHP Tutorial For Web Development | PHP Training | Edureka', 'heatmap': [{'end': 624.41, 'start': 546.439, 'weight': 0.719}, {'end': 898.784, 'start': 785.743, 'weight': 0.843}, {'end': 1038.33, 'start': 999.177, 'weight': 0.757}, {'end': 2665.132, 'start': 2622.578, 'weight': 0.942}], 'summary': 'This php tutorial covers the overview and practical applications of php in 2018, including basics, syntax, conditional statements, arrays, operators, string functions, printf, and connecting a mysql database using php, with emphasis on practical examples and modular code writing.', 'chapters': [{'end': 168.004, 'segs': [{'end': 168.004, 'src': 'embed', 'start': 127.503, 'weight': 0, 'content': [{'end': 131.145, 'text': 'And even big businesses like Wikipedia and Facebook are using it.', 'start': 127.503, 'duration': 3.642}, {'end': 137.85, 'text': 'So when you know that something like Facebook, which is a tech giant, is using PHP for its backend.', 'start': 131.766, 'duration': 6.084}, {'end': 141.593, 'text': "it's a pretty solid language that can handle millions and millions of data.", 'start': 137.85, 'duration': 3.743}, {'end': 148.336, 'text': 'Now PHP is also very compatible with multiple server types like Apache and other TLS servers.', 'start': 142.193, 'duration': 6.143}, {'end': 154.678, 'text': 'It is also compatible with multiple database types like PostgreSQL, MySQL and NoSQL.', 'start': 148.796, 'duration': 5.882}, {'end': 159.1, 'text': "Then to top it off, it's free to use and it's extremely easy to learn.", 'start': 154.958, 'duration': 4.142}, {'end': 163.742, 'text': "Now, if you're a thriving web developer or you want to get into web development,", 'start': 159.52, 'duration': 4.222}, {'end': 168.004, 'text': 'PHP is surely the way to go if you want to have any success in this field.', 'start': 163.742, 'duration': 4.262}], 'summary': 'Php is used by big businesses like wikipedia and facebook for its backend, handling millions of data, compatible with various servers and databases, free to use, and easy to learn, making it the way to go for web development success.', 'duration': 40.501, 'max_score': 127.503, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/hx38tnlYGlA/pics/hx38tnlYGlA127503.jpg'}], 'start': 11.53, 'title': 'Php in 2018', 'summary': 'Covers an overview of php, its functionalities, and reasons for learning it in 2018. it highlights its usage by tech giants like facebook and wikipedia, its flexibility, compatibility with multiple server and database types, and its ease of learning and use.', 'chapters': [{'end': 168.004, 'start': 11.53, 'title': 'Php in 2018: overview & benefits', 'summary': 'Covers an overview of php, its functionalities, and reasons for learning it in 2018, highlighting its usage by tech giants like facebook and wikipedia, its flexibility, compatibility with multiple server and database types, and its ease of learning and use.', 'duration': 156.474, 'highlights': ['PHP is used by tech giants like Facebook and Wikipedia, handling millions of data. PHP is widely used, handling data for big businesses like Facebook and Wikipedia, showcasing its ability to handle large amounts of data.', 'PHP is flexible, compatible with multiple server and database types, and free to use. PHP is extremely flexible and compatible with multiple server and database types, making it a versatile and cost-effective option for web development.', 'PHP is easy to learn and use, making it a good choice for thriving web developers. PHP is easy to learn and use, making it an ideal choice for web developers looking for success in the field.']}], 'duration': 156.474, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/hx38tnlYGlA/pics/hx38tnlYGlA11530.jpg', 'highlights': ['PHP is used by tech giants like Facebook and Wikipedia, handling millions of data.', 'PHP is flexible, compatible with multiple server and database types, and free to use.', 'PHP is easy to learn and use, making it a good choice for thriving web developers.']}, {'end': 523.886, 'segs': [{'end': 260.379, 'src': 'embed', 'start': 230.604, 'weight': 0, 'content': [{'end': 236.809, 'text': 'Now, how you do that in PHP is basically, say dollar sign and then the name of the variable, which is age out here,', 'start': 230.604, 'duration': 6.205}, {'end': 242.253, 'text': 'and then you assign the value with the equals to operand and then you go, this value is 22..', 'start': 236.809, 'duration': 5.444}, {'end': 244.094, 'text': 'Okay, so that was variables.', 'start': 242.253, 'duration': 1.841}, {'end': 250.876, 'text': "now, aside from variables, we can also define constants, and constants are things that don't change their value over time.", 'start': 244.094, 'duration': 6.782}, {'end': 253.897, 'text': 'so something like the value of pi is a constant.', 'start': 250.876, 'duration': 3.021}, {'end': 260.379, 'text': 'so to define a constant, we use the define keyword and then we set the variable name, or the constant name in this case,', 'start': 253.897, 'duration': 6.482}], 'summary': 'In php, variables are assigned with $ and value, like age=22. constants are defined using define keyword.', 'duration': 29.775, 'max_score': 230.604, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/hx38tnlYGlA/pics/hx38tnlYGlA230604.jpg'}, {'end': 324.816, 'src': 'embed', 'start': 297.533, 'weight': 4, 'content': [{'end': 301.477, 'text': "Now, if you don't know what an array is, well, it's a data structure that contains a list of elements.", 'start': 297.533, 'duration': 3.944}, {'end': 304.76, 'text': 'And most of the time, these lists of elements are common in nature.', 'start': 301.957, 'duration': 2.803}, {'end': 309.505, 'text': 'Now, these elements are mostly of the same data type when talking in computer science terms.', 'start': 305.1, 'duration': 4.405}, {'end': 313.249, 'text': 'So an array of integers will mostly carry only integers.', 'start': 309.985, 'duration': 3.264}, {'end': 316.271, 'text': "Now, I've already defined an array just for an example.", 'start': 313.749, 'duration': 2.522}, {'end': 320.033, 'text': 'So first of all, you define an array like this in PHP.', 'start': 316.711, 'duration': 3.322}, {'end': 322.615, 'text': 'You say the array name with a dollar sign.', 'start': 320.393, 'duration': 2.222}, {'end': 324.816, 'text': 'Then you use the array prebuilt function.', 'start': 322.895, 'duration': 1.921}], 'summary': 'An array is a common data structure in computer science, containing elements of the same data type, and is defined in php using the array prebuilt function.', 'duration': 27.283, 'max_score': 297.533, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/hx38tnlYGlA/pics/hx38tnlYGlA297533.jpg'}, {'end': 378.017, 'src': 'embed', 'start': 337.542, 'weight': 1, 'content': [{'end': 340.003, 'text': 'Predefined functions already come prebuilt in PHP.', 'start': 337.542, 'duration': 2.461}, {'end': 347.264, 'text': 'So something like the date function, which we will be seeing its usage while we are coding some PHP of our own, is a predefined function,', 'start': 340.383, 'duration': 6.881}, {'end': 350.665, 'text': 'and a user defined function is something like this, which I have wrote out here', 'start': 347.264, 'duration': 3.401}, {'end': 354.806, 'text': 'So I have made a function out here which adds two numbers and returns it.', 'start': 351.085, 'duration': 3.721}, {'end': 356.986, 'text': 'Now these are the parameters that it takes.', 'start': 355.126, 'duration': 1.86}, {'end': 361.227, 'text': 'Now num1 and num2 are the parameters and addNumbers is the name of the function.', 'start': 357.126, 'duration': 4.101}, {'end': 366.57, 'text': 'Now, functions are a beautiful way to actually reuse code and make your code much more modular.', 'start': 361.747, 'duration': 4.823}, {'end': 369.872, 'text': 'Next, we also have conditional statements in PHP.', 'start': 367.03, 'duration': 2.842}, {'end': 372.013, 'text': 'Now, there are three types of conditional statements.', 'start': 370.132, 'duration': 1.881}, {'end': 378.017, 'text': 'First is the if statement, then is the if else statement, and then is the switch statement.', 'start': 372.353, 'duration': 5.664}], 'summary': 'Predefined functions, user-defined functions, and conditional statements in php provide modular code and include if, if-else, and switch statements.', 'duration': 40.475, 'max_score': 337.542, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/hx38tnlYGlA/pics/hx38tnlYGlA337542.jpg'}, {'end': 429.172, 'src': 'embed', 'start': 400.111, 'weight': 2, 'content': [{'end': 403.974, 'text': 'So this is a good example of when you would use a conditional statement.', 'start': 400.111, 'duration': 3.863}, {'end': 407.536, 'text': 'Now we also have iterators in PHP.', 'start': 404.654, 'duration': 2.882}, {'end': 410.358, 'text': 'There are three kinds of iterators or loops in PHP.', 'start': 407.816, 'duration': 2.542}, {'end': 415.022, 'text': 'The first is the for loop, the second is the while loop, and the third is the do while loop.', 'start': 410.879, 'duration': 4.143}, {'end': 423.147, 'text': 'Now iterators are basically used when you need to actually repeat a specific block of code again and again in your software.', 'start': 415.682, 'duration': 7.465}, {'end': 424.889, 'text': "So we'll see how we do that.", 'start': 423.668, 'duration': 1.221}, {'end': 429.172, 'text': 'So this is how you actually define a while loop in PHP.', 'start': 425.509, 'duration': 3.663}], 'summary': 'Php has three kinds of iterators: for, while, and do while loops.', 'duration': 29.061, 'max_score': 400.111, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/hx38tnlYGlA/pics/hx38tnlYGlA400111.jpg'}], 'start': 168.424, 'title': 'Php basics in practical applications', 'summary': 'Covers php basics such as variable declaration, constant definition, data types, arrays, functions, conditional statements, and iterators, with practical examples. it emphasizes writing modular and reusable code.', 'chapters': [{'end': 316.271, 'start': 168.424, 'title': 'Php basics: variables, constants, data types, and arrays', 'summary': 'Covers the basic fundamentals of php including variable declaration, constant definition, data types (integers, float, strings, boolean, undefined), and arrays, with an emphasis on practical application and examples.', 'duration': 147.847, 'highlights': ["Variables in PHP are used to store values in memory locations and are declared using the dollar sign and the variable name, such as 'age = 22', highlighting the practical implementation of variables. Explains the concept of variables, defining a variable 'age' with the value 22, emphasizing practical implementation.", "Constants in PHP are defined using the 'define' keyword and retain their value over time, such as defining the constant 'pi' as 3.1415926, emphasizing the usage of constants in PHP. Illustrates the definition of constants using the 'define' keyword, highlighting the example of defining the constant 'pi' as 3.1415926.", 'The five types of data types in PHP include integers, floats, strings, booleans, and undefined, explaining the different data types in PHP and their characteristics. Describes the five types of data types in PHP: integers, floats, strings, booleans, and undefined, providing an overview of their characteristics.', 'Arrays in PHP are a data structure that contains a list of elements, often of the same data type, and are commonly used in practical scenarios, highlighting the practical application of arrays. Defines arrays as a data structure containing a list of elements, emphasizing their practical usage and commonality in PHP.']}, {'end': 523.886, 'start': 316.711, 'title': 'Php basics: arrays, functions, conditional statements, and iterators', 'summary': 'Covers the basics of php including defining arrays, types of functions, conditional statements (if, if else, switch), and iterators (for, while, do while). it also emphasizes the importance of these concepts in writing modular and reusable code.', 'duration': 207.175, 'highlights': ['The chapter explains how to define arrays in PHP, with examples such as Eclairs, Mars, and KitKat, and emphasizes their usage in creating lists of elements. It also illustrates the syntax for defining arrays and their importance in programming (e.g., creating lists of favorite chocolates).', 'It discusses predefined and user-defined functions in PHP, highlighting their role in code reusability. It provides an example of a user-defined function for adding two numbers and emphasizes the significance of functions in making code modular and reusable.', 'The chapter introduces three types of conditional statements in PHP: if, if else, and switch statements. It emphasizes the practical applications of conditional statements, such as in scenarios like betting applications, and the need to perform specific conditions in the code.', 'The chapter explains the three types of iterators or loops in PHP: for, while, and do while loops. It provides insights into their usage for repeating specific code blocks and highlights their characteristics, such as entry control for while loops and exit control for do while loops.', 'It covers the syntax and functionality of switch statements in PHP, emphasizing their use for comparing expressions and executing specific code blocks based on matching cases. It also mentions the default case for scenarios where no matching case is found.']}], 'duration': 355.462, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/hx38tnlYGlA/pics/hx38tnlYGlA168424.jpg', 'highlights': ["Variables in PHP are used to store values in memory locations and are declared using the dollar sign and the variable name, such as 'age = 22', highlighting the practical implementation of variables.", 'The chapter introduces three types of conditional statements in PHP: if, if else, and switch statements. It emphasizes the practical applications of conditional statements, such as in scenarios like betting applications, and the need to perform specific conditions in the code.', 'The chapter explains the three types of iterators or loops in PHP: for, while, and do while loops. It provides insights into their usage for repeating specific code blocks and highlights their characteristics, such as entry control for while loops and exit control for do while loops.', 'It discusses predefined and user-defined functions in PHP, highlighting their role in code reusability. It provides an example of a user-defined function for adding two numbers and emphasizes the significance of functions in making code modular and reusable.', 'Arrays in PHP are a data structure that contains a list of elements, often of the same data type, and are commonly used in practical scenarios, highlighting the practical application of arrays.']}, {'end': 1760.303, 'segs': [{'end': 552.943, 'src': 'embed', 'start': 524.307, 'weight': 0, 'content': [{'end': 530.57, 'text': 'So that was all about programming and how stuff is actually generalized and initialized in PHP.', 'start': 524.307, 'duration': 6.263}, {'end': 533.291, 'text': 'Now that was all the basic syntax of PHP.', 'start': 530.97, 'duration': 2.321}, {'end': 537.053, 'text': "Now let's get into the beef of PHP by actually coding some of our own.", 'start': 533.632, 'duration': 3.421}, {'end': 541.556, 'text': 'Okay Now, if you remember, I had told you guys that PHP is a server-side language.', 'start': 537.594, 'duration': 3.962}, {'end': 546.058, 'text': 'So this means to actually deploy our PHP scripts, we need a local server.', 'start': 542.116, 'duration': 3.942}, {'end': 552.943, 'text': "Now for my local server, I have already installed XAMPP and I'm serving an Apache server on my computer locally.", 'start': 546.439, 'duration': 6.504}], 'summary': 'Introduction to php programming, server-side language, using xampp for local server', 'duration': 28.636, 'max_score': 524.307, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/hx38tnlYGlA/pics/hx38tnlYGlA524307.jpg'}, {'end': 642.388, 'src': 'heatmap', 'start': 546.439, 'weight': 1, 'content': [{'end': 552.943, 'text': "Now for my local server, I have already installed XAMPP and I'm serving an Apache server on my computer locally.", 'start': 546.439, 'duration': 6.504}, {'end': 557.205, 'text': 'And you can do the same by just downloading XAMPP and going through the configurations.', 'start': 553.283, 'duration': 3.922}, {'end': 559.186, 'text': "I'll let you figure that out on your own.", 'start': 557.725, 'duration': 1.461}, {'end': 561.428, 'text': "So let me just show you what I've created.", 'start': 559.807, 'duration': 1.621}, {'end': 567.769, 'text': 'So firstly, I have my Apache server running, as you can see, on port number 80443.', 'start': 562.208, 'duration': 5.561}, {'end': 574.251, 'text': "And if you go into my files, you'll see that I have an index.html page created.", 'start': 567.769, 'duration': 6.482}, {'end': 576.351, 'text': 'So this is basically a form.', 'start': 574.631, 'duration': 1.72}, {'end': 578.071, 'text': 'Now let me just show you this form.', 'start': 576.911, 'duration': 1.16}, {'end': 579.792, 'text': 'So this is what the form looks like.', 'start': 578.451, 'duration': 1.341}, {'end': 583.833, 'text': 'And we are going to be using PHP to gather some data from this.', 'start': 580.352, 'duration': 3.481}, {'end': 590.114, 'text': 'Now if you remember, I had also told you that PHP is a fantastic language for gathering form data from HTML.', 'start': 584.033, 'duration': 6.081}, {'end': 592.935, 'text': "So let's go ahead and see how we can do that.", 'start': 590.754, 'duration': 2.181}, {'end': 596.596, 'text': "Okay Now I've already created this script.php.", 'start': 593.675, 'duration': 2.921}, {'end': 599.157, 'text': "Let's go ahead and open it with sublime text.", 'start': 597.076, 'duration': 2.081}, {'end': 601.058, 'text': 'Now let me just delete everything.', 'start': 599.817, 'duration': 1.241}, {'end': 601.978, 'text': "Let's save it.", 'start': 601.438, 'duration': 0.54}, {'end': 604.719, 'text': 'And let me also show you this index.html.', 'start': 602.738, 'duration': 1.981}, {'end': 610.421, 'text': "So basically it's the form inside the table and it's a student registration form, just like I showed you.", 'start': 604.759, 'duration': 5.662}, {'end': 614.363, 'text': 'So first of all, PHP is embedded in normal HTML codes.', 'start': 610.922, 'duration': 3.441}, {'end': 616.404, 'text': 'So let me just show you how to do that.', 'start': 615.023, 'duration': 1.381}, {'end': 624.41, 'text': "So you first of all create your HTML boilerplate and let's say this is called PHP demonstration.", 'start': 616.804, 'duration': 7.606}, {'end': 631.916, 'text': 'Right Now to begin your PHP code, all you have to do is open up your PHP tag, which goes something like this.', 'start': 625.431, 'duration': 6.485}, {'end': 634.525, 'text': 'And you close off your tag like this.', 'start': 633.124, 'duration': 1.401}, {'end': 638.126, 'text': 'All your PHP code is going to come in between these tags.', 'start': 635.105, 'duration': 3.021}, {'end': 642.388, 'text': "Now let's firstly show you how to comment in PHP.", 'start': 638.847, 'duration': 3.541}], 'summary': 'Using xampp, created an apache server, html form, and php script for data gathering.', 'duration': 27.365, 'max_score': 546.439, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/hx38tnlYGlA/pics/hx38tnlYGlA546439.jpg'}, {'end': 744.951, 'src': 'embed', 'start': 720.052, 'weight': 2, 'content': [{'end': 727.696, 'text': 'Okay, now I had also spoken about predefined functions and date is a very much used predefined function in PHP.', 'start': 720.052, 'duration': 7.644}, {'end': 731.078, 'text': 'So you can print out the date using PHP.', 'start': 728.157, 'duration': 2.921}, {'end': 734.3, 'text': 'So let me just tell you some of the formats you can print out your date in.', 'start': 731.539, 'duration': 2.761}, {'end': 736.742, 'text': 'So let me make a multi-line comment first.', 'start': 734.861, 'duration': 1.881}, {'end': 743.288, 'text': 'so these are the parameters you are normally going to pass into your date function.', 'start': 737.938, 'duration': 5.35}, {'end': 744.951, 'text': 'let me just list them out for you.', 'start': 743.288, 'duration': 1.663}], 'summary': 'Php date function is commonly used, with various formats available for printing dates.', 'duration': 24.899, 'max_score': 720.052, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/hx38tnlYGlA/pics/hx38tnlYGlA720052.jpg'}, {'end': 898.784, 'src': 'heatmap', 'start': 785.743, 'weight': 0.843, 'content': [{'end': 796.448, 'text': 'like first, second or third, or something fourth something like that and Y will give you the year in four digits, right.', 'start': 785.743, 'duration': 10.705}, {'end': 798.909, 'text': "so let's keep this in mind when printing out a date.", 'start': 796.448, 'duration': 2.461}, {'end': 804.151, 'text': 'now, to print out a date, you can simply go echo and say date,', 'start': 798.909, 'duration': 5.242}, {'end': 811.414, 'text': "because it's an inbuilt function and you're just going to pass in these parameters that i just showed you to print out whatever you want.", 'start': 804.151, 'duration': 7.263}, {'end': 815.175, 'text': 'so suppose we want to print out the hours in 12 hours format.', 'start': 811.414, 'duration': 3.761}, {'end': 816.115, 'text': 'we also want the minutes.', 'start': 815.175, 'duration': 0.94}, {'end': 817.436, 'text': 'we also want the seconds.', 'start': 816.115, 'duration': 1.321}, {'end': 823.478, 'text': "we also want the microseconds, and let's say we want the full text of the month.", 'start': 817.436, 'duration': 6.042}, {'end': 827.779, 'text': "i also want the full text of the day, and that's it.", 'start': 824.338, 'duration': 3.441}, {'end': 830.601, 'text': "let's save this, let's serve it now.", 'start': 827.779, 'duration': 2.822}, {'end': 832.761, 'text': 'okay, so you see, it shows.', 'start': 830.601, 'duration': 2.16}, {'end': 838.764, 'text': "according to my computer, it's october 1st and this is the time up till whatever we have specified.", 'start': 832.761, 'duration': 6.003}, {'end': 841.946, 'text': "so that's how you print out the date using php now.", 'start': 838.764, 'duration': 3.182}, {'end': 846.91, 'text': 'i had also told you that php is a fantastic language to collect form data.', 'start': 841.946, 'duration': 4.964}, {'end': 853.097, 'text': "now i've already created a form out here and that can be served on our local host.", 'start': 846.91, 'duration': 6.187}, {'end': 857.441, 'text': "so we have the student registration form where we're taking the student name, the grade that they're in,", 'start': 853.097, 'duration': 4.344}, {'end': 859.924, 'text': "the section that they're in and also the class teacher's name.", 'start': 857.441, 'duration': 2.483}, {'end': 863.927, 'text': 'Now, in our index, you see that these have already been given a name.', 'start': 860.564, 'duration': 3.363}, {'end': 866.709, 'text': 'This name attribute is going to be used in PHP.', 'start': 864.327, 'duration': 2.382}, {'end': 873.935, 'text': 'Now, you can access the values from the HTML that call this PHP script to execute putting the names assigned in the HTML in single quotes.', 'start': 867.149, 'duration': 6.786}, {'end': 877.197, 'text': 'Now, these are normally stored in an array called post.', 'start': 874.535, 'duration': 2.662}, {'end': 879.099, 'text': "So, let me show you how that's done.", 'start': 877.838, 'duration': 1.261}, {'end': 881.641, 'text': "So, first of all, let's remove all this.", 'start': 879.759, 'duration': 1.882}, {'end': 884.355, 'text': "now let's create a few variables.", 'start': 882.774, 'duration': 1.581}, {'end': 887.657, 'text': 'so to create variables you use the dollar sign and say student name.', 'start': 884.355, 'duration': 3.302}, {'end': 889.939, 'text': 'that is going to be the name of our variable.', 'start': 887.657, 'duration': 2.282}, {'end': 898.784, 'text': 'now our stuff is going to be stored in the post array and this is going to be called student name in the html,', 'start': 889.939, 'duration': 8.845}], 'summary': 'Php allows for easy date printing and form data collection using post array.', 'duration': 113.041, 'max_score': 785.743, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/hx38tnlYGlA/pics/hx38tnlYGlA785743.jpg'}, {'end': 1038.33, 'src': 'heatmap', 'start': 999.177, 'weight': 0.757, 'content': [{'end': 1010.659, 'text': 'He is taught by the teacher by rather just leave it as space and a dot and then teacher.', 'start': 999.177, 'duration': 11.482}, {'end': 1016.301, 'text': 'Right Now, every time somebody submits a script.php is going to be run,', 'start': 1011.419, 'duration': 4.882}, {'end': 1020.362, 'text': "because that's the action that we have specified and the method is going to be post.", 'start': 1016.301, 'duration': 4.061}, {'end': 1021.342, 'text': "So let's save this.", 'start': 1020.542, 'duration': 0.8}, {'end': 1025.964, 'text': "let's reload our page and let's put in some data.", 'start': 1022.322, 'duration': 3.642}, {'end': 1027.545, 'text': 'so my name is aria paul.', 'start': 1025.964, 'duration': 1.581}, {'end': 1035.888, 'text': "i'm in the eighth grade, which is section a, and my class teacher's name is mr roy.", 'start': 1027.545, 'duration': 8.343}, {'end': 1038.33, 'text': 'so once you hit submit okay.', 'start': 1035.888, 'duration': 2.442}], 'summary': 'Script.php runs on post method submission, with sample data input.', 'duration': 39.153, 'max_score': 999.177, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/hx38tnlYGlA/pics/hx38tnlYGlA999177.jpg'}, {'end': 1240.416, 'src': 'embed', 'start': 1206.934, 'weight': 3, 'content': [{'end': 1210.575, 'text': 'okay, now let me show you how to define constants.', 'start': 1206.934, 'duration': 3.641}, {'end': 1213.136, 'text': 'so let the stuff be here for now.', 'start': 1210.575, 'duration': 2.561}, {'end': 1214.177, 'text': "now let's define a constant.", 'start': 1213.136, 'duration': 1.041}, {'end': 1216.558, 'text': 'you can use the define keyword for that.', 'start': 1214.177, 'duration': 2.381}, {'end': 1217.598, 'text': 'go define.', 'start': 1216.558, 'duration': 1.04}, {'end': 1223.26, 'text': "let's say, you want to define a thing called pi and it's going to have a value of 3.14156.", 'start': 1217.598, 'duration': 5.662}, {'end': 1227.322, 'text': "right, let's not forget a semicolon.", 'start': 1223.26, 'duration': 4.062}, {'end': 1240.416, 'text': 'Now, to just output this, you want to say the value of pi is, and then the dot operator and all you need to say is pi.', 'start': 1230.211, 'duration': 10.205}], 'summary': "Demonstrates defining a constant 'pi' with a value of 3.14156.", 'duration': 33.482, 'max_score': 1206.934, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/hx38tnlYGlA/pics/hx38tnlYGlA1206934.jpg'}, {'end': 1313.149, 'src': 'embed', 'start': 1284.639, 'weight': 4, 'content': [{'end': 1289.203, 'text': 'Now, let me just show you all the different types of operations that you can do.', 'start': 1284.639, 'duration': 4.564}, {'end': 1295.723, 'text': 'So firstly you can do minus subtraction, you can do multiplication.', 'start': 1291.081, 'duration': 4.642}, {'end': 1298.744, 'text': 'Let me just show that with an x instead of a star.', 'start': 1295.743, 'duration': 3.001}, {'end': 1302.605, 'text': 'And you can do division and you can also do modulus.', 'start': 1299.564, 'duration': 3.041}, {'end': 1304.866, 'text': 'Modulus means it will give you the remainder.', 'start': 1303.265, 'duration': 1.601}, {'end': 1311.428, 'text': 'So you go 5 minus 2, 5 multiplied by 2, 5 divided by 2 and 5 modulus 2.', 'start': 1305.586, 'duration': 5.842}, {'end': 1313.149, 'text': "Let's save that.", 'start': 1311.428, 'duration': 1.721}], 'summary': 'Demonstrates various arithmetic operations including subtraction, multiplication, division, and modulus.', 'duration': 28.51, 'max_score': 1284.639, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/hx38tnlYGlA/pics/hx38tnlYGlA1284639.jpg'}, {'end': 1401.768, 'src': 'embed', 'start': 1371.798, 'weight': 6, 'content': [{'end': 1375.502, 'text': 'Now you can also cast from one type to another in PHP.', 'start': 1371.798, 'duration': 3.704}, {'end': 1379.465, 'text': 'So suppose you wanted to print out 5 divided by 2 as an integer.', 'start': 1375.842, 'duration': 3.623}, {'end': 1387.513, 'text': 'All you have to do is say integer before your output and now this will be actually converted into an integer.', 'start': 1379.505, 'duration': 8.008}, {'end': 1390.816, 'text': 'So now it says 2.5 and now watch as I reload.', 'start': 1387.593, 'duration': 3.223}, {'end': 1392.277, 'text': 'It says 2.', 'start': 1391.456, 'duration': 0.821}, {'end': 1396.301, 'text': "So that's how you can convert stuff to an integer or back and forth.", 'start': 1392.277, 'duration': 4.024}, {'end': 1401.768, 'text': 'Now, you can also use shortcuts when performing an operation.', 'start': 1397.563, 'duration': 4.205}], 'summary': 'In php, casting allows conversion of data types. for example, 5 divided by 2 can be cast as an integer, resulting in 2.', 'duration': 29.97, 'max_score': 1371.798, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/hx38tnlYGlA/pics/hx38tnlYGlA1371798.jpg'}, {'end': 1514.525, 'src': 'embed', 'start': 1480.234, 'weight': 5, 'content': [{'end': 1482.317, 'text': "OK, so that's how you use shortcuts in PHP.", 'start': 1480.234, 'duration': 2.083}, {'end': 1486.429, 'text': 'Now you can also use increment and decrement with this shortcut.', 'start': 1483.188, 'duration': 3.241}, {'end': 1488.83, 'text': "So let me just show you how that's done.", 'start': 1486.689, 'duration': 2.141}, {'end': 1495.112, 'text': 'So you go echo and you say plus plus random.', 'start': 1489.83, 'duration': 5.282}, {'end': 1501.775, 'text': 'So let me just show you the difference between post increment and pre increment, which is a pretty important concept in computer science.', 'start': 1495.713, 'duration': 6.062}, {'end': 1504.996, 'text': 'So you say plus plus random.', 'start': 1502.355, 'duration': 2.641}, {'end': 1507.177, 'text': "Let's not forget to add the line break.", 'start': 1505.716, 'duration': 1.461}, {'end': 1514.525, 'text': "Yeah, so that's adding the line break and let's copy this down and let's do.", 'start': 1508.22, 'duration': 6.305}], 'summary': 'Using shortcuts in php for increment and decrement operations demonstrated.', 'duration': 34.291, 'max_score': 1480.234, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/hx38tnlYGlA/pics/hx38tnlYGlA1480234.jpg'}, {'end': 1595.35, 'src': 'embed', 'start': 1565.594, 'weight': 7, 'content': [{'end': 1566.815, 'text': 'And this should be equal to 7 here.', 'start': 1565.594, 'duration': 1.221}, {'end': 1571.178, 'text': 'So that was just the basic difference between pre-increment and post-increment.', 'start': 1567.295, 'duration': 3.883}, {'end': 1578.168, 'text': 'Now you can also store the reference to an operator or a variable and you can do that with the &% sign.', 'start': 1571.983, 'duration': 6.185}, {'end': 1579.869, 'text': "So let me just show you how that's done.", 'start': 1578.548, 'duration': 1.321}, {'end': 1581.15, 'text': "Let's remove all this.", 'start': 1579.889, 'duration': 1.261}, {'end': 1586.314, 'text': "Actually let's keep this part because we'll be using that part later on.", 'start': 1582.451, 'duration': 3.863}, {'end': 1595.35, 'text': "Now, you'll see, let's say, we're going to say this is a reference to a number, and we need a random again.", 'start': 1587.088, 'duration': 8.262}], 'summary': 'Explains pre-increment and post-increment difference, using &% sign for reference.', 'duration': 29.756, 'max_score': 1565.594, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/hx38tnlYGlA/pics/hx38tnlYGlA1565594.jpg'}, {'end': 1760.303, 'src': 'embed', 'start': 1735.889, 'weight': 8, 'content': [{'end': 1742.692, 'text': "Now you'll see it's gonna print out max is not the biggest number which means that the else block got executed.", 'start': 1735.889, 'duration': 6.803}, {'end': 1748.474, 'text': 'So this is how you actually use conditional statements in PHP.', 'start': 1743.172, 'duration': 5.302}, {'end': 1751.995, 'text': "Okay, so let's go through some more conditions.", 'start': 1749.114, 'duration': 2.881}, {'end': 1755.536, 'text': 'Now else if is used when you have to check more than one condition.', 'start': 1752.495, 'duration': 3.041}, {'end': 1757.397, 'text': "Now let me just show you how that's done.", 'start': 1755.636, 'duration': 1.761}, {'end': 1760.303, 'text': "okay, let's remove all this.", 'start': 1758.522, 'duration': 1.781}], 'summary': 'Demonstrating usage of conditional statements in php, including if, else, and else if blocks.', 'duration': 24.414, 'max_score': 1735.889, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/hx38tnlYGlA/pics/hx38tnlYGlA1735889.jpg'}], 'start': 524.307, 'title': 'Php basics and syntax', 'summary': 'Covers basic php syntax, xampp setup, embedding php in html, php date function, form data collection, constants, arithmetic operations, type casting, shortcuts, incrementing, decrementing, references, and conditional statements, including demonstrations of server setup and form data output.', 'chapters': [{'end': 567.769, 'start': 524.307, 'title': 'Introduction to php syntax and local server setup', 'summary': 'Covers the basic syntax of php, including the use of xampp to set up a local apache server for php deployment, with the speaker demonstrating the creation of an apache server running on port number 80443.', 'duration': 43.462, 'highlights': ['The chapter covers the basic syntax of PHP, including the use of XAMPP to set up a local Apache server for PHP deployment.', 'The speaker demonstrates the creation of an Apache server running on port number 80443.', 'PHP is described as a server-side language, requiring a local server for deployment.']}, {'end': 719.392, 'start': 567.769, 'title': 'Php form data gathering demo', 'summary': "Explains how to embed php in html, including creating a form, commenting in php, and printing 'hello world' using php, with a demonstration of the output on a webpage.", 'duration': 151.623, 'highlights': ["The chapter explains how to embed PHP in HTML, including creating a form, commenting in PHP, and printing 'hello world' using PHP. Creating a form, commenting in PHP, printing 'hello world' using PHP", 'The form is a student registration form inside a table. Form type: student registration', 'Demonstrates how to comment in PHP, including single-line and multi-line comments. Types of comments: single-line, multi-line', "Demonstrates printing 'hello world' using PHP, with a demonstration of the output on a webpage. Printing 'hello world' using PHP, demonstration of output on a webpage"]}, {'end': 1206.057, 'start': 720.052, 'title': 'Php date function and form data collection', 'summary': 'Covers the php date function with various parameters for formatting and demonstrates how to print out a date using php. it also explains how to collect and output form data in php using the post array and the eod method.', 'duration': 486.005, 'highlights': ['The chapter covers the PHP date function with various parameters for formatting and demonstrates how to print out a date using PHP. It explains the parameters for formatting the date, including 12-hour and 24-hour format, minutes, seconds, microseconds, full text for day and month, day of the month, suffix for the date, and year in four digits.', 'It also explains how to collect and output form data in PHP using the POST array and the EOD method. It demonstrates accessing form data using the POST array and outputting the collected information in a neat manner using the EOD method.']}, {'end': 1760.303, 'start': 1206.934, 'title': 'Php constants, arithmetic operations, type casting, shortcuts, incrementing, decrementing, references, conditional statements', 'summary': 'Covers defining constants like pi with a value of 3.14156, outputting constants, performing arithmetic operations with examples of addition, subtraction, multiplication, division, and modulus, casting from one type to another, using shortcuts for operations and incrementing and decrementing variables, storing references to variables using the &% sign, and using conditional statements like if, else, and else if to compare and execute conditions.', 'duration': 553.369, 'highlights': ["Defining constants like pi with a value of 3.14156 and outputting the constant value. Defines the constant 'pi' with a value of 3.14156 and outputs its value.", 'Performing arithmetic operations including addition, subtraction, multiplication, division, and modulus. Demonstrates arithmetic operations with examples of addition, subtraction, multiplication, division, and modulus.', 'Using shortcuts for operations and incrementing and decrementing variables. Illustrates the use of shortcuts for operations, as well as incrementing and decrementing variables.', 'Casting from one type to another in PHP. Explains the process of casting from one data type to another in PHP, with an example of casting 5 divided by 2 to an integer.', 'Storing references to variables using the &% sign. Demonstrates the concept of storing references to variables using the &% sign, showcasing how changes to the original variable affect the referenced variable.', 'Using conditional statements like if, else, and else if to compare and execute conditions. Illustrates the use of conditional statements in PHP, including examples of if, else, and else if statements to compare and execute conditions.']}], 'duration': 1235.996, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/hx38tnlYGlA/pics/hx38tnlYGlA524307.jpg', 'highlights': ['The chapter covers the basic syntax of PHP, including the use of XAMPP to set up a local Apache server for PHP deployment.', "The chapter explains how to embed PHP in HTML, including creating a form, commenting in PHP, and printing 'hello world' using PHP.", 'The chapter covers the PHP date function with various parameters for formatting and demonstrates how to print out a date using PHP.', 'Defining constants like pi with a value of 3.14156 and outputting the constant value.', 'Performing arithmetic operations including addition, subtraction, multiplication, division, and modulus.', 'Using shortcuts for operations and incrementing and decrementing variables.', 'Casting from one type to another in PHP.', 'Storing references to variables using the &% sign.', 'Using conditional statements like if, else, and else if to compare and execute conditions.']}, {'end': 2344.984, 'segs': [{'end': 1833.578, 'src': 'embed', 'start': 1810.706, 'weight': 3, 'content': [{'end': 1819.89, 'text': 'Then you can represent the or gate through pipes and you can also do it with nor which is basically negation.', 'start': 1810.706, 'duration': 9.184}, {'end': 1825.653, 'text': 'so these are the type of binary operators that we have, and you can use them in php too.', 'start': 1820.47, 'duration': 5.183}, {'end': 1828.055, 'text': 'so let me just show you the conditions.', 'start': 1825.653, 'duration': 2.402}, {'end': 1833.578, 'text': "so let's put a condition also that banana has to be greater than 30..", 'start': 1828.055, 'duration': 5.523}], 'summary': 'Represent or and nor gates using pipes, use in php, set condition for banana > 30.', 'duration': 22.872, 'max_score': 1810.706, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/hx38tnlYGlA/pics/hx38tnlYGlA1810706.jpg'}, {'end': 1896.329, 'src': 'embed', 'start': 1865.358, 'weight': 1, 'content': [{'end': 1868.999, 'text': "let's say you're gonna have a 15% cashback on the bill.", 'start': 1865.358, 'duration': 3.641}, {'end': 1875.662, 'text': 'so echo 15% cashback on the bill.', 'start': 1868.999, 'duration': 6.663}, {'end': 1878.823, 'text': "or let's put another condition to check.", 'start': 1875.662, 'duration': 3.161}, {'end': 1891.147, 'text': "so if oranges are more than, or rather, let's see, you can also say something like if oranges are less than 5 and bananas are also less than 5,", 'start': 1878.823, 'duration': 12.324}, {'end': 1894.228, 'text': "You can say there's going to be a 1% cashback on the bill.", 'start': 1891.147, 'duration': 3.081}, {'end': 1896.329, 'text': 'And then you can finally say else.', 'start': 1894.728, 'duration': 1.601}], 'summary': '15% cashback on the bill, 1% cashback for less than 5 oranges and bananas.', 'duration': 30.971, 'max_score': 1865.358, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/hx38tnlYGlA/pics/hx38tnlYGlA1865358.jpg'}, {'end': 1957.147, 'src': 'embed', 'start': 1929.728, 'weight': 0, 'content': [{'end': 1933.09, 'text': 'And as you see, our first block of code got actually satisfied.', 'start': 1929.728, 'duration': 3.362}, {'end': 1939.655, 'text': 'So oranges are definitely more than 25 and bananas are definitely more than 30.', 'start': 1933.57, 'duration': 6.085}, {'end': 1942.157, 'text': "And that's why we get a 25% cash back on the bill.", 'start': 1939.655, 'duration': 2.502}, {'end': 1946.82, 'text': 'Okay, so that was how you go through multiple conditional statements.', 'start': 1942.817, 'duration': 4.003}, {'end': 1949.722, 'text': 'Now you can also use ternary operators.', 'start': 1947.6, 'duration': 2.122}, {'end': 1953.365, 'text': 'So let me show you how to use ternary operators in PHP.', 'start': 1949.862, 'duration': 3.503}, {'end': 1957.147, 'text': 'Well, ternary operators are used something like this.', 'start': 1954.454, 'duration': 2.693}], 'summary': 'Oranges > 25, bananas > 30, resulting in 25% cash back.', 'duration': 27.419, 'max_score': 1929.728, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/hx38tnlYGlA/pics/hx38tnlYGlA1929728.jpg'}, {'end': 2197.571, 'src': 'embed', 'start': 2156.467, 'weight': 2, 'content': [{'end': 2160.432, 'text': 'Okay, so that was all about conditional statements and how to use them in PHP.', 'start': 2156.467, 'duration': 3.965}, {'end': 2162.354, 'text': "So, now let's move on to iterators.", 'start': 2160.892, 'duration': 1.462}, {'end': 2163.916, 'text': "So, let's remove this completely.", 'start': 2162.454, 'duration': 1.462}, {'end': 2170.943, 'text': 'So, iterators, as I had already discussed, is used when you want to iterate a block of code for yourself.', 'start': 2164.516, 'duration': 6.427}, {'end': 2172.165, 'text': "So, let's see how that's done.", 'start': 2171.163, 'duration': 1.002}, {'end': 2175.346, 'text': 'so let me just define a number first of all.', 'start': 2172.745, 'duration': 2.601}, {'end': 2180.407, 'text': "so let's say var equals zero, so that's a variable called zero.", 'start': 2175.346, 'duration': 5.061}, {'end': 2181.467, 'text': 'now all i want to say.', 'start': 2180.407, 'duration': 1.06}, {'end': 2197.571, 'text': "while our variable is less than 20, what we want to do is echo out variable let's not forget the breaks and we also want to do increment variable.", 'start': 2181.467, 'duration': 16.104}], 'summary': 'Introduction to iterators in php, iterating a block of code, while variable is less than 20, echoing out variable and incrementing', 'duration': 41.104, 'max_score': 2156.467, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/hx38tnlYGlA/pics/hx38tnlYGlA2156467.jpg'}], 'start': 1760.303, 'title': 'Php conditional statements', 'summary': 'Covers using conditional statements, operators, and iterators in php to set up cashback conditions based on the quantity of oranges and bananas. it includes examples of multiple conditional statements, ternary operators, switch statements, and various types of loops, with key points on syntax and execution outcomes.', 'chapters': [{'end': 2004.825, 'start': 1760.303, 'title': 'Php conditional statements and operators', 'summary': 'Covers using conditional statements and operators in php to set up cashback conditions based on the quantity of oranges and bananas, including examples of multiple conditional statements and ternary operators.', 'duration': 244.522, 'highlights': ['Setting up cashback conditions based on quantity of oranges and bananas The chapter provides examples of setting up cashback conditions based on the quantity of oranges and bananas, such as 25% cashback for oranges more than 25 and bananas more than 30, and 15% cashback for oranges more than 30 and bananas more than 35.', 'Explanation of binary operators and their usage in PHP The chapter explains the usage of binary operators such as and gate, or gate, and nor gate, and their application in PHP, providing valuable insights into programming logic.', 'Demonstration of using ternary operators in PHP The chapter demonstrates the use of ternary operators in PHP to assign values based on a condition, with examples showing the assignment of values depending on whether a certain condition is true or false.']}, {'end': 2344.984, 'start': 2005.563, 'title': 'Php conditional statements and iterators', 'summary': 'Covers the usage of switch statements and various types of loops in php, including examples of switch cases and for, while, and do-while loops, with key points on syntax and execution outcomes.', 'duration': 339.421, 'highlights': ['The chapter covers the usage of switch statements and various types of loops in PHP. It explains the implementation of switch statements and different loop types, providing a comprehensive overview of conditional and iterative structures in PHP.', 'Examples of switch cases and for, while, and do-while loops are demonstrated. The transcript includes practical demonstrations of switch cases and for, while, and do-while loops, showcasing their syntax and functionality in PHP.', "The for loop is demonstrated with the syntax 'for (var = 0; var <= 20; var++)' and the output is shown from 0 to 19. A specific example of a for loop is showcased, with the syntax 'for (var = 0; var <= 20; var++)', demonstrating the output range from 0 to 19.", "The do-while loop is explained with a specific scenario, illustrating its 'exit control' nature. The do-while loop is elucidated using a specific scenario, emphasizing its characteristic of executing at least once and being an 'exit control' loop."]}], 'duration': 584.681, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/hx38tnlYGlA/pics/hx38tnlYGlA1760303.jpg', 'highlights': ['Demonstration of using ternary operators in PHP The chapter demonstrates the use of ternary operators in PHP to assign values based on a condition, with examples showing the assignment of values depending on whether a certain condition is true or false.', 'Setting up cashback conditions based on quantity of oranges and bananas The chapter provides examples of setting up cashback conditions based on the quantity of oranges and bananas, such as 25% cashback for oranges more than 25 and bananas more than 30, and 15% cashback for oranges more than 30 and bananas more than 35.', 'The chapter covers the usage of switch statements and various types of loops in PHP. It explains the implementation of switch statements and different loop types, providing a comprehensive overview of conditional and iterative structures in PHP.', 'Explanation of binary operators and their usage in PHP The chapter explains the usage of binary operators such as and gate, or gate, and nor gate, and their application in PHP, providing valuable insights into programming logic.', 'Examples of switch cases and for, while, and do-while loops are demonstrated. The transcript includes practical demonstrations of switch cases and for, while, and do-while loops, showcasing their syntax and functionality in PHP.']}, {'end': 3452.611, 'segs': [{'end': 2395.852, 'src': 'embed', 'start': 2368.216, 'weight': 0, 'content': [{'end': 2374.14, 'text': 'so this is how you set up an array so to access the members of an array.', 'start': 2368.216, 'duration': 5.924}, {'end': 2374.941, 'text': 'this is how you do it.', 'start': 2374.14, 'duration': 0.801}, {'end': 2382.686, 'text': "so echo, let's say I love space and dollar sign chocolates.", 'start': 2374.941, 'duration': 7.745}, {'end': 2389.449, 'text': "So you just mentioned the index number and that's how you specify what you want to access.", 'start': 2383.766, 'duration': 5.683}, {'end': 2390.709, 'text': "So let's see what this prints out.", 'start': 2389.529, 'duration': 1.18}, {'end': 2393.471, 'text': 'So it should print out I love Toblerone.', 'start': 2391.17, 'duration': 2.301}, {'end': 2395.852, 'text': 'So it prints out I love Toblerone.', 'start': 2393.891, 'duration': 1.961}], 'summary': "Setting up and accessing array elements using index numbers demonstrated. output: 'i love toblerone'.", 'duration': 27.636, 'max_score': 2368.216, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/hx38tnlYGlA/pics/hx38tnlYGlA2368216.jpg'}, {'end': 2481.334, 'src': 'embed', 'start': 2423.787, 'weight': 1, 'content': [{'end': 2425.348, 'text': 'And you just want to print out sweets.', 'start': 2423.787, 'duration': 1.561}, {'end': 2429.911, 'text': 'So sweets is just a random variable which is going to be used to access the members of the array.', 'start': 2425.408, 'duration': 4.503}, {'end': 2436.535, 'text': "So you could say echo sweets and let's put a line break.", 'start': 2430.671, 'duration': 5.864}, {'end': 2441.744, 'text': 'save it and it should print out all the chocolates that we have stored.', 'start': 2438.743, 'duration': 3.001}, {'end': 2444.004, 'text': 'So Toblerone, Twix, Mars and Eclairs.', 'start': 2442.184, 'duration': 1.82}, {'end': 2447.985, 'text': "That's how you use the for each statement in PHP.", 'start': 2444.685, 'duration': 3.3}, {'end': 2451.566, 'text': 'Okay so in PHP you can also create key value pairs.', 'start': 2448.586, 'duration': 2.98}, {'end': 2453.307, 'text': 'So let me just show you how to do that again.', 'start': 2451.786, 'duration': 1.521}, {'end': 2456.888, 'text': 'So let me first delete this.', 'start': 2454.187, 'duration': 2.701}, {'end': 2460.059, 'text': "So let's create a student array now.", 'start': 2458.638, 'duration': 1.421}, {'end': 2470.084, 'text': "So student is going to be array and it's going to be taken student name as the key and it's going to pair it to student name.", 'start': 2460.199, 'duration': 9.885}, {'end': 2478.048, 'text': 'And then we can also take the grade and pair it to the grade keyword.', 'start': 2472.125, 'duration': 5.923}, {'end': 2481.334, 'text': "yeah, so that's how you do that.", 'start': 2479.653, 'duration': 1.681}], 'summary': 'Using php, you can print array elements and create key-value pairs for data such as student names and grades.', 'duration': 57.547, 'max_score': 2423.787, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/hx38tnlYGlA/pics/hx38tnlYGlA2423787.jpg'}, {'end': 2573.937, 'src': 'embed', 'start': 2546.665, 'weight': 4, 'content': [{'end': 2551.348, 'text': 'now, suppose we had a bunch of student names and a bunch of grades.', 'start': 2546.665, 'duration': 4.683}, {'end': 2552.589, 'text': "it's going to print out all of them.", 'start': 2551.348, 'duration': 1.241}, {'end': 2556.531, 'text': 'Now. you can also concatenate two arrays.', 'start': 2553.55, 'duration': 2.981}, {'end': 2558.312, 'text': 'So let me just create two arrays for you.', 'start': 2556.671, 'duration': 1.641}, {'end': 2561.613, 'text': "So let's put in the chocolates array again.", 'start': 2559.212, 'duration': 2.401}, {'end': 2564.314, 'text': "And let's put in some members.", 'start': 2563.033, 'duration': 1.281}, {'end': 2567.875, 'text': 'So this is going to have Toblerone.', 'start': 2565.794, 'duration': 2.081}, {'end': 2570.816, 'text': 'And this is going to have Mars.', 'start': 2569.455, 'duration': 1.361}, {'end': 2573.937, 'text': "And it's going to have Twix.", 'start': 2572.056, 'duration': 1.881}], 'summary': 'Demonstrating array manipulation with student grades and chocolate types.', 'duration': 27.272, 'max_score': 2546.665, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/hx38tnlYGlA/pics/hx38tnlYGlA2546665.jpg'}, {'end': 2686.74, 'src': 'heatmap', 'start': 2622.578, 'weight': 3, 'content': [{'end': 2627.323, 'text': 'so echo element and then the line break.', 'start': 2622.578, 'duration': 4.745}, {'end': 2628.104, 'text': 'so that looks neat.', 'start': 2627.323, 'duration': 0.781}, {'end': 2630.74, 'text': "Let's not forget our semicolon.", 'start': 2629.5, 'duration': 1.24}, {'end': 2633.421, 'text': 'Have we forgotten semicolon somewhere else? Nope.', 'start': 2631.32, 'duration': 2.101}, {'end': 2636.062, 'text': "Let's comment this out because we don't need them anymore.", 'start': 2633.961, 'duration': 2.101}, {'end': 2638.462, 'text': "Save it and let's run it.", 'start': 2637.182, 'duration': 1.28}, {'end': 2641.543, 'text': 'Okay, expected this on line 25.', 'start': 2639.242, 'duration': 2.301}, {'end': 2644.003, 'text': 'Okay, I forgot to end.', 'start': 2641.543, 'duration': 2.46}, {'end': 2645.844, 'text': 'I deleted the PHP tag.', 'start': 2644.483, 'duration': 1.361}, {'end': 2647.724, 'text': 'Okay, so that was a mistake.', 'start': 2646.524, 'duration': 1.2}, {'end': 2650.105, 'text': 'Okay, so it says Toblerone.', 'start': 2648.464, 'duration': 1.641}, {'end': 2654.946, 'text': 'Repeat So that was all about associative arrays and how you can use them in PHP.', 'start': 2650.485, 'duration': 4.461}, {'end': 2665.132, 'text': 'Now some of the more common array operators that I use are equal to equal to, which basically checks if both the arrays are the same.', 'start': 2655.646, 'duration': 9.486}, {'end': 2667.514, 'text': "Now let's see how you can do that.", 'start': 2665.753, 'duration': 1.761}, {'end': 2669.288, 'text': "So let's create two arrays.", 'start': 2667.947, 'duration': 1.341}, {'end': 2671.509, 'text': "Let's say this is another array.", 'start': 2670.129, 'duration': 1.38}, {'end': 2672.75, 'text': 'Let me just show you.', 'start': 2671.549, 'duration': 1.201}, {'end': 2676.833, 'text': "So you say student, and it's going to be an array of student names.", 'start': 2673.271, 'duration': 3.562}, {'end': 2686.74, 'text': "So Aria, say Paul, let's say Now let's create another thing called names.", 'start': 2677.954, 'duration': 8.786}], 'summary': 'Demonstrating php code including arrays, operators, and common mistakes.', 'duration': 31.094, 'max_score': 2622.578, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/hx38tnlYGlA/pics/hx38tnlYGlA2622578.jpg'}, {'end': 2780.328, 'src': 'embed', 'start': 2746.765, 'weight': 6, 'content': [{'end': 2749.266, 'text': 'So this part is also not executed.', 'start': 2746.765, 'duration': 2.501}, {'end': 2750.146, 'text': "So that's how it's done.", 'start': 2749.406, 'duration': 0.74}, {'end': 2753.608, 'text': 'Now you can also create multi dimensional arrays.', 'start': 2750.547, 'duration': 3.061}, {'end': 2755.128, 'text': 'So let me just show you how to do that.', 'start': 2753.708, 'duration': 1.42}, {'end': 2758.509, 'text': 'So multi dimensional array.', 'start': 2755.848, 'duration': 2.661}, {'end': 2760.75, 'text': "So let's see.", 'start': 2759.55, 'duration': 1.2}, {'end': 2762.579, 'text': "Let's create an array called student.", 'start': 2761.158, 'duration': 1.421}, {'end': 2769.382, 'text': "It's going to say array and an array, a multidimensional array is basically an array inside of an array.", 'start': 2762.599, 'duration': 6.783}, {'end': 2770.963, 'text': 'So you can do that again.', 'start': 2769.443, 'duration': 1.52}, {'end': 2780.328, 'text': "So go array and let's say Aria, he lives in Bangalore and some five, five is let's say a roll number.", 'start': 2770.983, 'duration': 9.345}], 'summary': 'Demonstrating creation of multi-dimensional arrays in arrays.', 'duration': 33.563, 'max_score': 2746.765, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/hx38tnlYGlA/pics/hx38tnlYGlA2746765.jpg'}, {'end': 2997.012, 'src': 'embed', 'start': 2939.691, 'weight': 7, 'content': [{'end': 2945.195, 'text': 'So, our original array is 6, 8, 3, 4, 2, 7, 10, and this should get sorted out.', 'start': 2939.691, 'duration': 5.504}, {'end': 2947.755, 'text': 'So, yep, 2, 3, 4, 6, 7, 8, 10.', 'start': 2945.755, 'duration': 2}, {'end': 2949.778, 'text': "So, that's one of the functions.", 'start': 2947.756, 'duration': 2.022}, {'end': 2952.94, 'text': 'So, you can say sort numeric or sort strings.', 'start': 2950.638, 'duration': 2.302}, {'end': 2956.502, 'text': 'Then, you can also reverse sort this.', 'start': 2953.8, 'duration': 2.702}, {'end': 2960.125, 'text': 'So, you can say rsort, and this will reverse sort it.', 'start': 2956.562, 'duration': 3.563}, {'end': 2963.667, 'text': "And now it's 10, 8, 7, 4, 6, 3, 2.", 'start': 2961.085, 'duration': 2.582}, {'end': 2966.309, 'text': 'So, those are some cool stuff you can do with arrays.', 'start': 2963.667, 'duration': 2.642}, {'end': 2973.717, 'text': "okay, so now let's move on to some common string functions that you might use in php.", 'start': 2967.333, 'duration': 6.384}, {'end': 2976.198, 'text': 'remove that, remove that.', 'start': 2973.717, 'duration': 2.481}, {'end': 2980.581, 'text': 'okay. now let me just create a string so str equals to.', 'start': 2976.198, 'duration': 4.383}, {'end': 2989.446, 'text': "let's put some white spaces into our string and say random string, fight space.", 'start': 2980.581, 'duration': 8.865}, {'end': 2991.948, 'text': 'yeah, so as you see, this has a lot of white space.', 'start': 2989.446, 'duration': 2.502}, {'end': 2994.731, 'text': 'Now what if we want to strip down these white spaces?', 'start': 2992.489, 'duration': 2.242}, {'end': 2997.012, 'text': 'So all you have to do is say echo.', 'start': 2995.331, 'duration': 1.681}], 'summary': 'Array sorting, reversing, and common string functions in php demonstrated.', 'duration': 57.321, 'max_score': 2939.691, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/hx38tnlYGlA/pics/hx38tnlYGlA2939691.jpg'}, {'end': 3452.611, 'src': 'embed', 'start': 3397.868, 'weight': 9, 'content': [{'end': 3411.832, 'text': "so to create a function, let's say it says sum takes in two numbers, number one and number two, and it'll return num1 plus num2,", 'start': 3397.868, 'duration': 13.964}, {'end': 3421.476, 'text': 'and all you have to do is say echo, sum five, comma seven, and that should actually return you five plus seven.', 'start': 3411.832, 'duration': 9.644}, {'end': 3423.476, 'text': "so yep, that's 12..", 'start': 3422.216, 'duration': 1.26}, {'end': 3426.817, 'text': 'so this wraps up our php tutorial video.', 'start': 3423.476, 'duration': 3.341}, {'end': 3435.459, 'text': "in the further videos, i'll show you how to actually connect a mysql database using php, and until next time, goodbye.", 'start': 3426.817, 'duration': 8.642}, {'end': 3437.96, 'text': 'i hope you have enjoyed listening to this video.', 'start': 3435.459, 'duration': 2.501}, {'end': 3445.922, 'text': 'please be kind enough to like it and you can comment any of your doubts and queries and we will reply them at the earliest.', 'start': 3437.96, 'duration': 7.962}, {'end': 3448.162, 'text': 'do look out for more videos in our playlist.', 'start': 3445.922, 'duration': 2.24}, {'end': 3452.611, 'text': 'Happy learning!.', 'start': 3451.965, 'duration': 0.646}], 'summary': 'Php tutorial concludes with example of sum function returning 12.', 'duration': 54.743, 'max_score': 3397.868, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/hx38tnlYGlA/pics/hx38tnlYGlA3397868.jpg'}], 'start': 2346.164, 'title': 'Php arrays, operators, string functions, and printf', 'summary': 'Covers setting up arrays, accessing array members, creating key value pairs, manipulation of arrays including concatenation, cycling through arrays, sorting and reversing arrays, common string functions like trimming, printf for formatted strings and decimal precision, converting strings, comparing strings, creating and using functions in php, and a preview of connecting a mysql database using php.', 'chapters': [{'end': 2546.665, 'start': 2346.164, 'title': 'Php arrays and key value pairs', 'summary': 'Covers setting up arrays, accessing array members using index numbers, cycling through arrays using for each statement, and creating key value pairs in php with examples and demonstrations.', 'duration': 200.501, 'highlights': ['Setting up arrays in PHP by defining members such as Toblerone, Twix, Mars, and Eclairs, and accessing them using index numbers.', 'Using for each statement to cycle through and print out all the chocolates stored in the array: Toblerone, Twix, Mars, and Eclairs.', 'Creating key value pairs in PHP with examples and demonstrations for student names and grades.']}, {'end': 2966.309, 'start': 2546.665, 'title': 'Php arrays and operators', 'summary': 'Covers the creation and manipulation of arrays in php, including concatenation, checking for equality, creating multi-dimensional arrays, cycling through them, sorting and reversing arrays, with examples and outcomes provided.', 'duration': 419.644, 'highlights': ['The chapter covers the creation and manipulation of arrays in PHP, including concatenation, checking for equality, creating multi-dimensional arrays, cycling through them, sorting and reversing arrays, with examples and outcomes provided. (relevance: 5)', 'The chapter demonstrates concatenating two arrays in PHP by creating and concatenating two arrays of chocolates and student names, and then iterating through the concatenated array to display the elements, providing a practical example. (relevance: 4)', "It explains the usage of array operators such as 'equal to equal to' and 'not equals to' for comparing arrays in PHP, including practical demonstrations with examples and outcomes, illustrating the comparison process. (relevance: 3)", 'The chapter provides a demonstration of creating and cycling through a multi-dimensional array in PHP, explaining the concept and practical implementation with examples, showcasing the process of accessing and displaying elements within the multi-dimensional array. (relevance: 2)', 'It showcases the usage of array functions in PHP, specifically demonstrating the sorting and reversing of arrays, including examples and outcomes, highlighting the functionality and application of these array functions. (relevance: 1)']}, {'end': 3452.611, 'start': 2967.333, 'title': 'Php string functions and printf', 'summary': 'Covers common string functions in php, including trimming white spaces, using printf for formatted strings and decimal precision, converting strings to uppercase and lowercase, turning strings into arrays, and comparing strings with strcmp. it also introduces creating and using functions in php, concluding with a preview of connecting a mysql database using php.', 'duration': 485.278, 'highlights': ['The chapter covers common string functions in PHP, including trimming white spaces, using printf for formatted strings and decimal precision, converting strings to uppercase and lowercase, turning strings into arrays, and comparing strings with strcmp. The chapter delves into various common string functions in PHP, such as trimming white spaces, using printf for formatted strings and decimal precision, converting strings to uppercase and lowercase, turning strings into arrays, and comparing strings with strcmp.', 'It introduces creating and using functions in PHP, including an example of a function that takes in two numbers and returns their sum. The transcript introduces creating and using functions in PHP, including an example of a function that takes in two numbers and returns their sum.', 'It concludes with a preview of connecting a MySQL database using PHP. The chapter concludes with a preview of connecting a MySQL database using PHP.']}], 'duration': 1106.447, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/hx38tnlYGlA/pics/hx38tnlYGlA2346164.jpg', 'highlights': ['Setting up arrays in PHP by defining members such as Toblerone, Twix, Mars, and Eclairs, and accessing them using index numbers.', 'Using for each statement to cycle through and print out all the chocolates stored in the array: Toblerone, Twix, Mars, and Eclairs.', 'Creating key value pairs in PHP with examples and demonstrations for student names and grades.', 'The chapter covers the creation and manipulation of arrays in PHP, including concatenation, checking for equality, creating multi-dimensional arrays, cycling through them, sorting and reversing arrays, with examples and outcomes provided.', 'The chapter demonstrates concatenating two arrays in PHP by creating and concatenating two arrays of chocolates and student names, and then iterating through the concatenated array to display the elements, providing a practical example.', "It explains the usage of array operators such as 'equal to equal to' and 'not equals to' for comparing arrays in PHP, including practical demonstrations with examples and outcomes, illustrating the comparison process.", 'The chapter provides a demonstration of creating and cycling through a multi-dimensional array in PHP, explaining the concept and practical implementation with examples, showcasing the process of accessing and displaying elements within the multi-dimensional array.', 'It showcases the usage of array functions in PHP, specifically demonstrating the sorting and reversing of arrays, including examples and outcomes, highlighting the functionality and application of these array functions.', 'The chapter covers common string functions in PHP, including trimming white spaces, using printf for formatted strings and decimal precision, converting strings to uppercase and lowercase, turning strings into arrays, and comparing strings with strcmp.', 'It introduces creating and using functions in PHP, including an example of a function that takes in two numbers and returns their sum.', 'It concludes with a preview of connecting a MySQL database using PHP.']}], 'highlights': ['PHP is used by tech giants like Facebook and Wikipedia, handling millions of data.', 'PHP is flexible, compatible with multiple server and database types, and free to use.', 'PHP is easy to learn and use, making it a good choice for thriving web developers.', "Variables in PHP are used to store values in memory locations and are declared using the dollar sign and the variable name, such as 'age = 22', highlighting the practical implementation of variables.", 'The chapter introduces three types of conditional statements in PHP: if, if else, and switch statements. It emphasizes the practical applications of conditional statements, such as in scenarios like betting applications, and the need to perform specific conditions in the code.', 'The chapter explains the three types of iterators or loops in PHP: for, while, and do while loops. It provides insights into their usage for repeating specific code blocks and highlights their characteristics, such as entry control for while loops and exit control for do while loops.', 'It discusses predefined and user-defined functions in PHP, highlighting their role in code reusability. It provides an example of a user-defined function for adding two numbers and emphasizes the significance of functions in making code modular and reusable.', 'Arrays in PHP are a data structure that contains a list of elements, often of the same data type, and are commonly used in practical scenarios, highlighting the practical application of arrays.', 'The chapter covers the basic syntax of PHP, including the use of XAMPP to set up a local Apache server for PHP deployment.', "The chapter explains how to embed PHP in HTML, including creating a form, commenting in PHP, and printing 'hello world' using PHP.", 'The chapter covers the PHP date function with various parameters for formatting and demonstrates how to print out a date using PHP.', 'Demonstration of using ternary operators in PHP The chapter demonstrates the use of ternary operators in PHP to assign values based on a condition, with examples showing the assignment of values depending on whether a certain condition is true or false.', 'Setting up cashback conditions based on quantity of oranges and bananas The chapter provides examples of setting up cashback conditions based on the quantity of oranges and bananas, such as 25% cashback for oranges more than 25 and bananas more than 30, and 15% cashback for oranges more than 30 and bananas more than 35.', 'The chapter covers the usage of switch statements and various types of loops in PHP. It explains the implementation of switch statements and different loop types, providing a comprehensive overview of conditional and iterative structures in PHP.', 'Explanation of binary operators and their usage in PHP The chapter explains the usage of binary operators such as and gate, or gate, and nor gate, and their application in PHP, providing valuable insights into programming logic.', 'Examples of switch cases and for, while, and do-while loops are demonstrated. The transcript includes practical demonstrations of switch cases and for, while, and do-while loops, showcasing their syntax and functionality in PHP.', 'Setting up arrays in PHP by defining members such as Toblerone, Twix, Mars, and Eclairs, and accessing them using index numbers.', 'Using for each statement to cycle through and print out all the chocolates stored in the array: Toblerone, Twix, Mars, and Eclairs.', 'Creating key value pairs in PHP with examples and demonstrations for student names and grades.', 'The chapter covers the creation and manipulation of arrays in PHP, including concatenation, checking for equality, creating multi-dimensional arrays, cycling through them, sorting and reversing arrays, with examples and outcomes provided.', 'The chapter demonstrates concatenating two arrays in PHP by creating and concatenating two arrays of chocolates and student names, and then iterating through the concatenated array to display the elements, providing a practical example.', "It explains the usage of array operators such as 'equal to equal to' and 'not equals to' for comparing arrays in PHP, including practical demonstrations with examples and outcomes, illustrating the comparison process.", 'The chapter provides a demonstration of creating and cycling through a multi-dimensional array in PHP, explaining the concept and practical implementation with examples, showcasing the process of accessing and displaying elements within the multi-dimensional array.', 'It showcases the usage of array functions in PHP, specifically demonstrating the sorting and reversing of arrays, including examples and outcomes, highlighting the functionality and application of these array functions.', 'The chapter covers common string functions in PHP, including trimming white spaces, using printf for formatted strings and decimal precision, converting strings to uppercase and lowercase, turning strings into arrays, and comparing strings with strcmp.', 'It introduces creating and using functions in PHP, including an example of a function that takes in two numbers and returns their sum.', 'It concludes with a preview of connecting a MySQL database using PHP.']}