PHP for Beginners
4.7 (65 ratings)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
2,463 students enrolled
Wishlisted Wishlist

Please confirm that you want to add PHP for Beginners to your Wishlist.

Add to Wishlist

PHP for Beginners

PHP for Beginners: Learn to Code in PHP Using Real World Examples! PHP for Beginners Course 2016
4.7 (65 ratings)
Instead of using a simple lifetime average, Udemy calculates a course's star rating by considering a number of different factors such as the number of ratings, the age of ratings, and the likelihood of fraudulent ratings.
2,463 students enrolled
Created by Patrick Morrow
Last updated 8/2016
English
Current price: $10 Original price: $40 Discount: 75% off
1 day left at this price!
30-Day Money-Back Guarantee
Includes:
  • 5 hours on-demand video
  • 23 Articles
  • 30 Supplemental Resources
  • Full lifetime access
  • Access on mobile and TV
  • Certificate of Completion
Have a coupon?
What Will I Learn?
a true PHP for Beginners course with step-by-step lessons
learn how to code using PHP from a national award-winning teacher
you will be taken from absolute PHP beginner to confident coder with every step clearly explained
create dozens of useful PHP scripts
create a Rock Paper Scissors game
create a basic hit counter via sessions
create a 2 player Tic Tac Toe game
create a bad word filter
create a 'How many days until Christmas' script
create and use HTML forms and process the data using PHP
create, read, update and delete sessions and cookies
access to regularly updated content including lesson notes, downloadable code, HD quality video tutorials, and quizzes
25 PHP coding challenges (more added regularly) with full video solutions and downloadable PHP code
access real world coding challenges and examples including full video solutions and downloadable code
manipulate words and sentences (strings) using string functions
use mathematical operators e.g. addition, subtraction, multiplication, division (and more) to solve practical problems e.g. calculate the area of a circle if the user inputs the radius or diameter
use loops to simplify processes
use conditional statements to test properties and action processes based on the result
create and use simple arrays and solve problems involving array functions
use associative arrays and manipulate them using array functions
use PHP internal functions and create your own
use the date() function to perform calculations based on date
a tutor who responds quickly to questions and who regularly updates the course
30 day money back guarantee!
...and much more!
View Curriculum
Requirements
  • Have access to a computer with internet connection and browser
  • Some HTML and CSS knowledge would be beneficial but the tutor will explain everything as he goes
Description

REGULARLY UPDATED PHP FOR BEGINNERS COURSE. 

Students consistently say how much they LOVE this course due to its unique delivery method and challenges which enable you to use your new skills immediately.

This PHP for beginners course introduces you to PHP through carefully crafted examples and fully worked mini tasks. LEARNING by DOING is what this course is all about. You will experience real world examples of PHP code use.

Have you seen other courses that use complex terms or that jump steps and leave you thinking "why did that just happen"? You won't find that with this carefully crafted course.

This course has been designed with the coding beginner in mind or those who may have picked up bad habits and wish to refresh their coding skills.

On hand to help and guide you is a renowned national award-winning teacher who has taught 1000s of students over a career of over 25 years.

Highlights of this course include:

  • Full code from every example and mini task shared with you online
  • Carefully crafted challenges and full solutions with FULL explanations of every line
  • Demonstration of a shared coding environment
  • Dozens of real world examples with more added on a regular basis
  • A tutor who cares about his students
  • Regular updates and new challenges

If you want to learn PHP and take your first steps into the world of web development then this PHP for Beginners course is for you.

Every line of code is explained in full detail to ensure that you can progress from absolute beginner to competent coder in a few weeks.

Launch yourself onto a new career path by taking this course now.

STUDENT REVIEW: "If you want a no-fluff, straight-to-the-point, engaging, practical, fun and beginners course in PHP, then this is the course you are looking for.  This course introduces you to the fundamentals of PHP. In no time, you will be writing scripts ranging from fairly simple to complex. The instruction is structured in such a way that you grab the basics very quickly and get to practice what you have learned in practical exercises.  The instructor's delivery is engaging throughout the entire length of the course and the length of each video is just right so you are not bored and tempted to visit other websites. I'm giving this course 5 stars because of the practice exercises which does a great deal in developing your mental muscles.  I could go on and on but all I am trying to say is you aren't going to find any course on Udemy which teaches you the fundamentals of PHP and gives you the confidence to write awesome programs."


Who is the target audience?
  • No PHP coding experience is required - this is a true PHP for Beginners course
  • Complete beginners to PHP are welcome and encouraged to enrol
  • Anyone interested in learning PHP at a basic to intermediate level
  • If you are looking to learn complex Object Oriented Programming (OOP) then this course is not for you
Students Who Viewed This Course Also Viewed
Curriculum For This Course
Expand All 138 Lectures Collapse All 138 Lectures 05:53:10
+
Introduction
5 Lectures 11:22

A brief overview of this PHP for Beginners course and an introduction to your instructor.

I will briefly introduce some of the concepts covered in the course and explain who should consider taking this course.

Preview 01:40

PHP for Beginners: In this brief lesson I show you how to access the higher quality videos.

Watching lecture videos in high quality
00:34

PHP for Beginners: An update about the changes to CodeAnywhere

IMPORTANT: Changes to CodeAnywhere
00:37

PHP for Beginners: In this lesson we set up the PHP development environment and look at some of the settings available.

Preparing your development environment
06:46

PHP for Beginners: I show you how to access the code snippets and downloadable files within the course.

Throughout the course you will find various resources for each coding lesson.

I hope you find the downloadable files and code snippets useful.

Accessing and using the course exercise files
01:45
+
PHP Basics
7 Lectures 16:30

We follow the coding tradition and start with Hello, World!

The 'Hello, World!' script is a common starting point for most coding courses and we follow this traditional starting point in PHP for Beginners.

Hello, World!
02:41

Learn how to start a PHP code block and how to avoid and handle some basic common errors.

  • closing php tags and when and why we can omit them
  • missing semi-colons
How to use the correct syntax in PHP
03:26

Learn how to name a variable correctly in PHP.

  • What are PHP variables
  • How do you name a variable in PHP
What are PHP variables?
2 pages

You will learn how to assign values to variables in PHP

How to assign values to a variable in PHP
02:31

We will briefly look at the PHP online resource manual and see what data types are available for us to use.

What PHP data types are available?
02:38

How to use PHP echo and print functions to view code output.

Echo and Print - how to view PHP output
02:33

Get into good habits early and comment your code!

I show you how to add comments to your PHP code and how to comment out sections of code.

How to add comments to PHP code
02:41

A quick check of your understanding of variables in PHP

Variables in PHP
5 questions
+
Basic Operators
8 Lectures 16:31

Just as important as being able to code is being able to keep organised. Taking some time to create a few folders will help you in the long term.

We look at how the name of the folders and files affects what we see in the browser.

Getting organised before we start the challenges
02:40

You will learn how to use the addition + operator in PHP.

We will also look at shortcut methods for adding numbers.

How to add and subtract numbers in PHP
02:46

You will learn how to multiply and divide numbers in PHP

How to multiply and divide numbers in PHP
02:46

You will learn how to use the modulus operator.

How to use the PHP modulus operator
02:05

You will learn how to raise a number to a given power

How to find a power of a number using PHP
01:37

In this challenge you will create a basic calculator

Challenge 1: Back to school - TASK
02:07

Solution for the back to school challenge

Challenge 1: Back to school - SOLUTION
02:30

Downloadable file containing the code for the back to school challenge

Challenge 1: Back to school - CODE
2 pages
+
Assignment, Conditional and Logical Operators
8 Lectures 14:33

PHP for Beginners: Learn how to join strings and variables using concatenation in PHP

How to join words and sentences using concatenation in PHP
04:28

A mini challenge to test your understanding of concatenation.

Challenge 2: What's in a name? - TASK
1 page

The full video solution to the WHAT'S IN A NAME challenge

Challenge 2: What's in a name? SOLUTION
03:13

The full code of the solution to the WHAT'S IN A NAME challenge

Challenge 2: What's in a name? CODE
00:07

In this lesson we look at concatenation of sentences.

There are a few methods you can use to concatenate, mostly involving the use of single or double quotes and how we concatenate variables. It is down to personal preference how you concatenate. I prefer to have my variables outside of the quotes like this:

echo "The area of the circle is :" . $area . " cm squared";

More concatenation
01:45

We review the PHP comparison operators

What are the comparison operators in PHP?
01:50

We review the the PHP logical operators

What are the logical operators in PHP?
00:54

In this lecture you will learn how to increase and decrease a variable value

Counting: Incrementing and Decrementing
02:16
+
IF Statements
3 Lectures 11:08

You will learn how to use the IF statement

How to use a basic IF statement in PHP
04:54

You will learn how to use the IF ELSE statement

Preview 02:39

You will learn how to use the ELSEIF statement

How to use an ELSEIF statement in PHP
03:35
+
Basic Loops
8 Lectures 12:11

In this PHP for Beginners lesson you will learn how to use a FOR loop.

Loops are very important and extremely useful when cycling through variable values, particularly when it comes to using database records (although we don't cover that in this course).

There are different methods we can employ to loop through values and the FOR loop in PHP is just one such way.

Preview 03:22

You will learn how to use a WHILE loop

How to use WHILE loops in PHP
02:20

Time for another challenge. In this task you have to create a loop which will create a 6 times table

Challenge 3: Multiples - TASK
1 page

Video solution for the multiplication tables task

Challenge 3: Multiples - SOLUTION
02:04

Code for the multiplication tables task

Challenge 3: Multiples - CODE
00:04

In this challenge you need to replicate the game of FIZZ BUZZ

Challenge 4: Let's play Fizz Buzz: TASK
1 page

Video solution for the Fizz Buzz challenge

Challenge 4: Let's play Fizz Buzz: SOLUTION
04:13

Code for the fizz buzz challenge

Challenge 4: Let's play Fizz Buzz: CODE
00:08

This quiz will test your understanding of loops.

Loops
4 questions
+
PHP Internal (in-built) Functions
16 Lectures 33:48

You will learn how to use the PHP reference manual

How to use the PHP online reference manual
02:55

You will learn how to generate a random number in PHP

How to generate a random number in PHP
02:34

In this challenge you will generate a random number between 1 and 2. If the random number is 1 then echo "Heads, I win!" otherwise echo "Tails, you win!"


Check out the extension task too!

Challenge 5: Heads, I win! - TASK
1 page

Video solution of the GIVE ME A HIGH 5 task

Challenge 5: Heads, I win! - SOLUTION
04:24

Downloadable code for the GIVE ME A HIGH 5 task

Challenge 5: Heads, I win! - CODE
00:11

In this task you need to calculate the area of a circle using the PI() function and then the ROUND() function to round your answer.

Challenge 6: Who ate all the pi? - TASK
1 page

Video solution to the WHO ATE ALL THE PI task

Challenge 6: Who ate all the pi? - SOLUTION
03:28

Downloadable code for the WHO ATE ALL THE PI task

Challenge 6: Who ate all the pi? - CODE
00:04

How to use the date() function in PHP

How to use the date function in PHP
06:19

In this task you will have to format various dates by using the DATE() function

Challenge 7: Carpe Diem - TASK
1 page

Video solution to the CARPE DIEM task

Challenge 7: Carpe Diem - SOLUTION
04:11

Downloadable code for the CARPE DIEM task

Challenge 7: Carpe Diem - CODE
00:15

We look a little bit more at some of the available date functions before taking on the next challenge.

Preview 06:31

This tasks involves counting the number of days until Christmas.

Challenge 8: Santa Claus is coming to town - TASK
1 page

Video solution to the SANTA CLAUS IS COMING TO TOWN challenge

Challenge 8: Santa Claus is coming to town - SOLUTION
02:48

Downloadable code to the SANTA CLAUS IS COMING TO TOWN challenge.

Challenge 8: Santa Claus is coming to town - CODE
00:07
+
How to create a form in HTML and send data to a PHP script
6 Lectures 24:53

You will learn how to create a basic HTML page structure including:

  • doctype
  • tag use
    • opening and closing tags
  • head section and title
  • body section
How to create a basic HTML page structure
03:44

You will learn the structure of a basic form and create one from scratch. No styling will be applied. We will just focus on the form structure.

How to create a basic HTML form
06:36

You will learn how to send your form data to a PHP processing script. You will then learn how to check that data has been sent and how to assign it to variables.

How to use form data in PHP
06:12

This task involves creating a user input form and taking the temperature input and converting it from degrees C to degrees F

Challenge 9: Temperature conversion - TASK
1 page

Video solution to the temperature conversion task

Challenge 9: Temperature conversion - SOLUTION
08:05

Downloadable file containing the code to the temperature conversion task

Challenge 9: Temperature conversion: CODE
00:16

A few questions to check your understanding of the concepts so far

Progress Quiz
5 questions
+
More Internal Functions: Working with strings
15 Lectures 21:15

You will learn how to use strlen() in order to find the length of a string

How to find the length of a word or sentence in PHP
02:11

In this lesson I show you how to count the number of words in a sentence.

How to count the number of words in a string in PHP
01:12

In this task you will accept a user input and check the length of the string and then tell them how long the string is.

Challenge 10: How long is a piece of string? - TASK
1 page

Video solution to the HOW LONG IS A PIECE OF STRING challenge

Challenge 10: How long is a piece of string? - SOLUTION
05:11

Downloadable code for the HOW LONG IS A PIECE OF STRING challenge

Challenge 10: How long is a piece of string? - CODE
00:18

In this lesson I show you how to replace characters in a string. This function has many uses, one of which could be as a bad word filter.

How to replace characters in a string
02:51

In this lesson we look at the str_shuffle() function

How to randomise a string in PHP
01:15

Yesterday you received a strange message from HQ which simply said: str_rot13()

Today you received a long coded message:

Rafher gung lbh orpbzr snzvyvne jvgu cuc shapgvbaf nf gurl ner rkgerzryl hfrshy.

Your task is to decode the message and act on it.

Challenge 11: Mission impossible - TASK
1 page

Solution to the MISSION IMPOSSIBLE challenge

Challenge 11: Mission Impossible - SOLUTION
01:47

<?php

//original messsage

$message = "Ensure that you become familiar with php functions as they are extremely useful.";

//coded message

$encoded = str_rot13($message);

echo $encoded;

echo "<br>";

//decoding the message

$return = str_rot13($encoded);

echo $return;

Challenge 11: Mission Impossible - CODE
00:06

In this lesson we look at the difference between double and single quotes.

Double versus single quotes in PHP
01:54

In this lesson we look at how we can escape strings. I show you the use of double and single quotes.

How to escape strings in PHP
02:09

In this challenge you will escape strings in order to have valid output. Not as easy as it first sounds!

Challenge 12: The Great Escape - TASK
1 page

The video solution to THE GREAT ESCAPE challenge

Challenge 12: The Great Escape - SOLUTION
01:54

Downloadable code for THE GREAT ESCAPE challenge

Challenge 12: The Great Escape - CODE
00:25
+
How to create and use basic ARRAYS and array functions
27 Lectures 01:05:21

You will learn what an array is in PHP

What is an array in PHP?
03:43

You will learn how to output data from an array. This is extremely useful for when we start to connect with databases.

How to loop through an array in PHP
03:27

You will learn how to split an array at a given point and in a given length using array_slice()

How to split a string and place into an array in PHP
02:18

In this task you will:

  • create a user input form
  • create a script to check if it is a valid ISBN number
Challenge 13: ISBN checker - TASK
2 pages

Video tutorial solution to the ISBN checker challenge

Challenge 13: ISBN checker - SOLUTION
09:43

Downloadable file of the solution to the ISBN checked challenge

Challenge 13: ISBN checker - CODE
00:20

In this challenge you will use your knowledge of arrays and strings to filter out inappropriate words from user inputs

Challenge 14: Mind your language! - TASK
1 page

Video solution for the MIND YOUR LANGUAGE challenge

Challenge 14: Mind your language! - SOLUTION
03:09

Challenge 14: Mind your language! - CODE
00:09

In this lesson you will learn how to sort data in an array and then output the results.

I will show you the following functions:

  • sort()
  • rsort()
How to sort data in an array in PHP
02:42

You will learn how to use the explode() and implode() functions on strings.

How to explode and implode strings
03:00

You will learn how to add items to an array using array_push() and array_unshift()

How to add elements to an existing array in PHP
02:42

In this challenge you will take a list of 10 cities and place them into an array. You will then sort them alphabetically and output the result as an ordered list. For example, the output may look like this:

  1. Amsterdam
  2. Berlin
  3. London
  4. Paris
  5. ...etc
Challenge 15: Around the world in 80 days - TASK
2 pages

Video solution for the AROUND THE WORLD IN 80 DAYS challenge.

Challenge 15: Around the world in 80 days - SOLUTION
03:49

Downloadable code for the AROUND THE WORLD IN 80 DAYS challenge

Challenge 15: Around the world in 80 days - CODE
00:05

You will learn how to remove single elements from an array using array_pop() and array_shift()

Removing elements from the beginning/end of an array
02:55

In this lesson we learn how to use the array_slice() function to split an array.

How to use array_slice() to split an array in PHP
03:50

In this task you will need to take a series of temperatures and place them into an array, then order them, then find the 5 hottest temperatures and output them.

Challenge 16: It's getting hot in here - TASK
1 page

Video solution for the IT'S GETTING HOT IN HERE challenge

Challenge 16: It's getting hot in here - SOLUTION
05:42

Challenge 16: It's getting hot in here - CODE
00:22

You will learn how to shuffle an array and select a random element from an array

How to select a random element from an array
02:15

In this task you will generate a random card from a pack of 52 playing cards. You will need to use the array_rand() function to return a random element from an array.

Challenge 17: Pick a card, any card - TASK
1 page

Video solution for the PICK A CARD, ANY CARD challenge

Challenge 17: Pick a card, any card - SOLUTION
03:35

Downloadable code for the PICK A CARD, ANY CARD challenge

Challenge 17: Pick a card, any card - CODE
00:10

In this task you need to consider user inputs and how we can validate these. In this activity you will be validating a credit card number.

Although most online stores process payments via external payment processors, it is still a nice little activity to get you thinking about the logic behind the code...something that most beginners find quite challenging.

Challenge 18: Let's go shopping - TASK
2 pages

Video solution to the LET'S GO SHOPPING CHALLENGE

Challenge 18: Let's go shopping - SOLUTION
11:21

Downloadable code for the LET'S GO SHOPPING challenge

Challenge 18: Let's go shopping - CODE
00:02
5 More Sections
About the Instructor
Patrick Morrow
4.7 Average rating
65 Reviews
2,463 Students
1 Course
National Award-Winning Teacher & Premium Udemy Instructor

Patrick is a very experienced teacher who is consistently recognised for helping students achieve their true potential. This quality has been recognised by the National Teaching Awards with Patrick awarded Outstanding Teacher of the Year. Other establishments including Her Majesty's Inspectorate in the UK use his models as examples of best practice. Patrick is a Google Certified Educator and was invited by Apple to participate in the Apple Distinguished Leaders Program 2016.

Patrick has been featured on television and in the Financial Times, ISP World, and Computer Weekly.

He has taught students at all levels, has been guest speaker at multiple conferences and has been invited by a top university to 'lecture anytime'.

"Patrick is not only a quality teacher, he is a mover and motivator of minds."

"A genius of his profession."

"Of course this guy's popular, he's the definition of a perfect teacher in a myriad of so many imperfect ones."