Learn PHP Programming From Scratch
- Description
- Curriculum
- FAQ
- Reviews
Do you want to be a web developer? Do you need to brush up on your PHP skills? Then you’re in the right place!
This is the most comprehensive PHP course on Udemy. You will learn everything from the basics to more advanced PHP programming using real world examples and sample projects.
Check out the free sample videos to get a free taste of PHP!
This course is updated regularly with new content and new projects to work on, so even if you get through the entire course, there will always be more the next time you log in.
What Is PHP?
PHP is an open source (free) scripting language that allows you to create dynamic websites and work with servers. PHP is now used on over 20 million websites and over 1 million servers worldwide.
-
4Commenting CodeVideo lesson
-
5Setting Up A Web ServerVideo lesson
-
6Echo/PrintVideo lesson
The echo language construct allows you to output data to the browser. Also, a quick word about the print language construct.
* Section 2 source codes can be downloaded from the right side of the page.
-
7VariablesVideo lesson
How to store values into variables, the rules for variable naming and how to output them to the user
-
8If StatementsVideo lessonA look at IF, IF ELSE and IF ELSEIF ELSE statements, with a example to help you understand the uses. Uses comparison operators in the example, which you can learn more about from our other videos.
-
9Arithmetic OperatorsVideo lessonThe arithmetic operators within PHP, with examples using them. Talks about addition, subtraction, multiplication, division, modulus (remainder), increment and decrement.
-
10Comparison OperatorsVideo lessonComparison operators allow you to compare values. For example, is the person old enough to do something?
-
11Triple EqualsVideo lessonThe triple equal (===) compares not only values, but data types too.
-
12Logical OperatorsVideo lessonA look at logical operators, and detailed examples of how and why we use them. The use of NOT is outlined in my other videos.
-
13Switch StatementVideo lessonThe switch statement offers a faster, cleaner way of comparison. This tutorial provides a couple of examples of using the switch statement.
-
14ArraysVideo lessonHow to create an array, and assign values to either default or defined keys. Also speaks about foreach construct briefly.
-
15Multi-dimensional ArraysVideo lessonCreating a multi-dimensional array following on from the previous example in the array video tutorial by phpacademy. This will show you how to create up to 3 dimensions, with an example of being able to store properties for each name
-
16While LoopVideo lessonThe while loop, it's syntax, and an example of counting numbers.
-
17Do While LoopVideo lessonThe do while loop, it's syntax, how it differs from a while loop, and an example of counting numbers
-
18For LoopsVideo lessonThe for loop, it's syntax, and an example of counting numbers.
-
19ForeachVideo lessonExplains the use of foreach construct for obtaining keys and values from an array, and displaying them
-
20FunctionsVideo lessonWhy functions are useful, how to declare them, and a few examples.
-
21Functions with Undefined ParametersVideo lessonFunction parameters don't need to be defined, and the use of this method means you can pass as many values to a function without defining them
-
22Formatting NumbersVideo lessonFormat decimal points, or display numbers in thousands, etc. with commas to separate. We also look at reducing the amount of characters after the decimal point of a number.
-
23$_GETVideo lesson$_GET allows values to be read in through the page URL (e.g. index.php?name=Alex). This example shows how to read these in, and how to incorporate a form as to submit these variables
-
24$_POSTVideo lesson$_POST allows values to be read in through the HTTP POST method. This example shows how to read these in, and how to incorporate a form as to submit these variables.
-
25Embedding PHP within HTMLVideo lessonHow to embed PHP inside HTML, including an example with a form and a textarea. Please ensure you use the htmlentities() function, wrapped around your $_POST['name'], when submitting data to be displayed on a page
-
26A better way to display HTMLVideo lessonA much better, faster way of displaying HTML within PHP. In this example, in an IF ELSE statement.
-
27Arrays (Part 1/2)Video lessonA more in depth look at arrays with some examples. Includes, creating and adding to arrays, dumping array contents and creating a function to output values from a specific array
-
28Arrays (Part 2/2)Video lessonA more in depth look at arrays with some examples. Includes, creating and adding to arrays, dumping array contents and creating a function to output values from a specific array.
-
29Cookies (Part 1)Video lessonCookies store data on the users computer ready for the server to read back from them. I show you how to set, show, check for and destroy cookies in this tutorial
-
30Cookies (Part 2)Video lessonCookies store data on the users computer ready for the server to read back from them. I show you how to set, show, check for and destroy cookies in this tutorial
-
31CheckboxesVideo lessonAn introduction to submitting and processing checkboxes with PHP.
-
32Radio ButtonsVideo lessonAn introduction to submitting and processing radio buttons with PHP.
-
33SessionsVideo lesson
Simelar to cookies, sessions store data, but data is destroyed when the connection is lost (i.e. browser is closed). I show you how to create, show, and unset sessions.
-
34Explode (String to Array)Video lessonExploding a string will split a string by a specific character (a delimiter) and place each broken string into an element within an array. This tutorial covers the basic concept of exploding strings with PHP, with an example.
-
35Implode (Array to String)Video lessonImploding an array will take each element, and create a string, including a specified delimiter. This tutorial covers the basic concept of imploding arrays with PHP, with an example
-
36Ternary Operator (Inline IF statement)Video lessonThe ternary operator is essentially an inline IF statement, saving a lot of time and lines of code. In this tutorial we shorten around 9 lines, to 2.
-
37Quickly Return True or FalseVideo lessonQuickly return true or false from a function. A handy tip that should save some time!
-
38Splitting A String By Spaces (Whitespace)Video lessonSplitting a string by an unlimited (or, large) amount of spaces. Useful for splitting up search terms to process keywords. We use a very simple regular expression here, in conjunction with the preg_split function
-
39Generate a Random NumberVideo lessonSimply generate a random number with PHP.
-
40IntroductionVideo lessonConnecting to a database with PDO, using one of the available PDO drivers. In this case, we're connecting using MySQL.
-
41Listing available driversVideo lessonNow we've connected to MySQL and selected our database using PDO, we need to query our database and return a result set. We look at returning all results, or results that can be looped through (fetching next row with each loop). We also look at returning in both associative and numerical arrays.
-
42Setting up databaseVideo lessonUsing a PDOStatement method, we can return the amount of rows that were affected by our last query, which can be very useful!
-
43ConnectingVideo lessonBinding values to a query offers SQL injection protection. Here, we look at an example of searching a database table for user defined input, and injecting this value into the query.
-
44Error levelsVideo lessonWe can set the error reporting attribute of the PDO object so methods throw exceptions on error. We can then make use of a try catch block to catch thrown exceptions.
-
45Basic queryVideo lessonHere, we look at simply returning the last inserted ID for the last executed query
-
46Fetching resultsVideo lessonTransactions offer the benefit of 'storing' a sequence of queries to be committed. This benefit means we can roll back these queries if an exception is thrown.
-
47LoopingVideo lesson
-
48Fetch allVideo lesson
-
49Fetch as objectVideo lesson
-
50Row countVideo lesson
-
51Project - user class datesVideo lesson
-
52EscapingVideo lesson
-
53Prepared statementsVideo lesson
-
54InsertingVideo lesson
-
55Last inserted idVideo lesson
-
56IntroductionVideo lesson
-
57Conecting to a databaseVideo lesson
-
58Connecting using phpVideo lesson
-
59Creating database tableVideo lesson
-
60Pulling single recordVideo lesson
-
61Pulling multiple recordsVideo lesson
-
62Different result typesVideo lesson
-
63Counting resultsVideo lesson
-
64Updating and affected rowsVideo lesson
-
65EscapingVideo lesson
-
66Prepared statements for insertingVideo lesson
-
67Selecting prepared statementsVideo lesson
-
68Free resultVideo lesson
-
69Closing db connectionVideo lesson
-
70Introduction to Our ProjectVideo lesson
-
71Installing LaravelVideo lesson
-
72The DatabaseVideo lesson
-
73Creating the Home PageVideo lesson
-
74TemplatingVideo lesson
-
75PDO and SMTP E-mailVideo lesson
-
76Creating Accounts Part 1Video lesson
-
77Creating Accounts Part 2Video lesson
-
78E-mail ActivationVideo lesson
-
79Signing InVideo lesson
-
80Signing OutVideo lesson
-
81Remember MeVideo lesson
-
82Changing PasswordsVideo lesson
-
83User ProfilesVideo lesson
-
84Account RecoveryVideo lesson
-
85MigrationsVideo lesson

External Links May Contain Affiliate Links read more