Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
PHP For Everybody — The Perfect PHP Beginners Course (2020)
Rating: 4.4 out of 5(58 ratings)
290 students

PHP For Everybody — The Perfect PHP Beginners Course (2020)

PHP For Everybody: learn everything you need to become a professional PHP developer. PHP Homework and Project included.
Created byKalob Taulien
Last updated 1/2020
English
English [Auto],

What you'll learn

  • How to install PHP
  • How to write PHP from scratch (no experience required!)
  • Different PHP data types (ints, strings, floats, null, arrays, etc.)
  • PHP Comparison operators
  • Conditional logic
  • How to write PHP for the web
  • How to validate PHP form fields

Course content

3 sections48 lectures5h 37m total length
  • How PHP Works4:20

    Learn how PHP dynamically generates web pages, using URL parameters like $_GET['color'] to alter output without compiling, and how PHP outputs HTML on a live server.

  • What You Should Already Know2:14

    Learn PHP as a server-side language with minimal prerequisites; you’ll see HTML/CSS/JavaScript, but the course stays strictly PHP. Master PHP syntax, variables, and debugging to become a professional PHP developer.

  • Installing PHP4:43

    Install PHP on Windows, Mac, or Linux using XAMPP or Docker to run PHP files on a local server. Follow PHP 7.x guidance and Docker options.

  • (Optional) Installing XAMPP3:04

    Install and launch XAMPP to run PHP locally, select a PHP 7.x version on Mac or Windows, access localhost dashboard, and view PHP info for databases and PDO details.

  • Downloading The Code In This Course0:11
  • What Is A PHP File?6:27

    Learn what a PHP file is and why the .php extension matters for the server. Discover how Apache serves PHP templates by hiding source code and delivering dynamic pages.

  • Who Uses PHP?5:14

    Discover why PHP remains a dominant server-side language, powering WordPress and major sites like Facebook and Wikipedia, with 27 percent of all web sites running PHP.

  • What's The Difference Between Frontend and Backend Coding?3:28

    Learn the difference between front end and back end coding, including browser-based HTML, CSS, and JavaScript versus server-side databases and languages like PHP and Python; discover what full stack means.

  • Tools You'll Need5:32

    Identify essential tools for PHP development: a text editor (Sublime, VS Code, Atom), Git with GitHub and GitLab, and a local server (zap or lamp) or Docker for running PHP.

  • Documentation6:53

    Explore PHP documentation on php.net to understand functions like date and their parameters. Remember you don't need to memorize every detail; the power lies in knowing where to find information.

  • PHP Syntax7:05

    Learn PHP syntax by writing echo statements with proper quotes and semicolons, and declaring variables that start with a dollar sign.

  • Echo/Print5:41

    Master echo in PHP and see that it replaces print for most uses. Practice echoing text to a page with quotes or apostrophes and apply escaping to prevent syntax errors.

  • Code Commenting5:51

    Learn to manage large PHP projects by using three comment styles: hashtag comments, double slash comments, and multi-line comments, and understand how they affect code readability and debugging.

  • Variables8:22

    Explore variables in PHP by creating and assigning values with a dollar sign, then printing them with echo. Learn naming rules and examples like name and age to build content.

  • Data Types9:08

    Explore PHP data types like strings, integers, floats, booleans, and arrays, and learn variable declarations. Showcase echo and basic outputs for each type.

  • Mixing PHP and HTML5:21

    Master mixing php and html by embedding php echoes into html elements, using .php files, and styling with simple inline css and basic tags like h1 and div.

  • Unsetting Variables3:14

    Unset a PHP variable by clearing its value with the built-in unset function, targeting one or more variables (including arrays and objects) and showing before and after echoes.

  • Debugging Variables6:29

    Learn to debug variables in PHP with print_r, echo array values, and inspect data types. Explore arrays, indices, and zero-based numbering while viewing page source to verify content.

  • Better Debugging5:12

    Learn to debug PHP more effectively by using var_dump instead of print_r, and discover how Xdebug enhances output with clear file and line details.

  • Type Casting9:51

    Explore type casting in PHP, learn how strings, integers, and floats differ, and see how var_dump and simple conditionals handle type conversions; practice converting values and understanding loose typing.

  • Arithmetic (Math)7:28

    Learn basic arithmetic in PHP, including addition, subtraction, multiplication, division, exponent, and modulus, using variables and echo to compute dynamic numbers.

  • Constants4:09

    Learn how to use constants in PHP to store unchanging values with define, create a named constant like name with Caleb, and apply constants in config files.

  • Concatenation5:22

    Master PHP concatenation by learning how to join variables and strings with the dot operator, using echo, and choosing between single and double quotes.

  • Quotes vs. Apostrophes6:02

    Explore the difference between quotes and apostrophes in PHP, and use escaping with a backslash to render quotes inside strings and concatenate safely.

  • String Replacement6:10

    Learn how to replace parts of a string in PHP using the string replace function, including what to replace, replacement text, where to replace it, and optional count.

  • Arrays16:18

    Learn to create and access arrays in PHP, using [] and array(), index-based access, and multi-dimensional arrays.

  • Sorting Arrays7:04

    Explore sorting arrays in PHP, from simple alphabetical sorts to reverse sorts, and learn to sort by values or by keys in associative arrays using sort, rsort, and ksort.

  • Conditional Statements13:00

    Learn how if statements drive conditional logic in PHP, using = vs == and operators like >, <, >=, <= to control output such as age checks and access decisions.

  • Else Statements4:33

    Learn else statements in PHP by executing code when an if condition is false, illustrated with a simple age example and the else syntax.

  • Else If Statements8:04

    Master PHP conditionals by building if statements, else if chains, and the optional else, with examples using age checks and URL parameters to drive logic.

  • Comparison Operators13:27

    Explore how comparison operators work in PHP, including equals, not equals, greater than, less than, and the distinction between soft and strict comparisons tied to data types.

  • Incremental and Decremental Operators3:46

    Explore PHP incremental and decremental operators to adjust numbers by one. See plus plus and minus minus in action, including shorthand plus equals and minus equals with points and age.

  • Not True9:14

    Explore how booleans drive conditionals, with true and false, the not operator, and how numbers like zero and minus twelve are evaluated as true or false in PHP.

  • Ternary Logic10:42

    Explore ternary logic as a shorthand for if-else statements in PHP, with practical examples (age and can drink) and guidance on readability and avoiding over-nested expressions.

  • Implode / Explode8:36

    Explode a sentence into an array and implode the pieces back together in PHP, demonstrating how to transform and join arrays, including using spaces, commas, and pipes.

  • Switch Statements13:22

    Learn how switch statements in PHP replace long if-else chains, using multiple cases, default handling, and break to create cleaner, faster conditional logic for dynamic pages like blogs.

  • While Loops9:45

    Explore while loops in PHP, learn the syntax, echo output, increment a counter, and control flow with break and continue.

  • For Loops6:16

    Explore for loops in PHP and compare them to while loops, highlighting automatic increment, end conditions, and when to use break, continue, or for each.

  • Foreach Loops17:15

    Master foreach loops in PHP to iterate arrays, including multi-dimensional and associative arrays, printing keys and values, and accessing nested data for practical data handling.

  • Check If Variable Is Set7:36

    Learn to check whether a variable or array key exists in PHP using is set, control outputs with if-else, and prevent overwriting across files and plugins.

  • Is_* Functions7:36

    Explore PHP is_* functions such as is_int, is_float, is_numeric, is_array, and is_string, and learn to typecast values to proper data types to write cleaner, standards-driven code.

  • Checking If Variable Is Empty3:52

    Check if the email address is empty to enforce required fields in form submission, then implement basic form validation and guard against malicious input.

  • Starting With Web Form Data2:49

    Learn how to build a basic html form using the get method, add a text input with a city name and a submit button, and observe url parameters like city=edmonton.

  • GET Requests6:19

    Create a simple PHP get form and display the city from the get parameter, using is set and empty to echo the city name from the URL.

  • POST Requests10:10

    Learn how to use the post method in PHP forms, compare it to get, and access posted data with the post super global to protect sensitive information.

  • Required Form Fields10:05

    Learn to enforce required form fields in PHP by server-side validation of post data, not relying on the browser 'required' attribute. Create informative error messages and refactor logic for readability.

Requirements

  • Must be able to download and install a text editor program (free) and a PHP program (also free)

Description

Course created for 2019-2020

Taught by a top premium Udemy Instructor...

I've taught over 130,000 students on Udemy....

-------------------------------------------------------------------------------------------------------

Are you new to web development (or PHP) or interested in freelancing? Then course is the perfect match for you. You will learn all the core PHP fundamentals you need to get started as a beginner PHP developer.

I've started several startups using PHP and it's allowed me to:

  • Build my dream applications from scratch

  • Travel the world

  • Work from home (and work remotely around the world)

  • Find freelance work anywhere I go

  • Always have clients to work with

  • Always have money in the bank

PHP is one of the worlds most in-demand web languages. WordPress is a content management system that runs over 32% of ALL websites in the world, and it's built using PHP as its coding language. If you decided to learn just one coding language in your entire life, I would suggest PHP because of the high demand for WordPress websites. It's the money-making programming language.

If you know PHP, you can create: websites, content management systems, web applications and it will allow you to create startups like Facebook (Facebook actually used PHP!)

Everybody is excited to learn brand new languages, but the truth is: PHP runs so many websites it would be crazy NOT to learn PHP. Knowing PHP allowed me to travel the world and start a startup in Ireland — and it allows me to code from a beach! If you put economics, market demand and coding languages aside, this is the one language that's enabled me to have a better life.

Why?

Over 1 in 3 websites use PHP. 32% of websites use WordPress which is built using PHP, plus there are tonnes of sites that use other content management systems, or use frameworks like Laravel (also built using PHP).

You can literally find a job anywhere in the world if you know PHP. You can easily supplement your income, or change careers, if you know PHP.

Here are some of my students reviews (these are REAL 5 star reviews from my other PHP course)

Incredible PHP course*********

so far - this course is simple and easy to understand with clear direction and to the point info on exactly what you want to know

No fluff or nonsense*********

He is great! I love that he doesn't talk too much nonsense.

It doesn't take 37 hours*************

The instructor covered a lot of content in a fast but still understandable manner. Having the basics of PHP I can start making dynamic web pages. Thanks.

*********************End of Reviews *********************

My guarantee:

By the end of this course you will be a Junior PHP Developer. If you need help or get stuck, or just need further explanation... I am here for you (I don't have teach assistants to outsource questions to; you will get an answer directly from ME). I've created a free developer support group with over 13,000 web developer from around the world — that means 13,000 more chances for help, answers, clarity and support. But let's be honest: I'm a teacher, my success depends on your success... so I will make sure you succeed!

No nonsense or fluff:

Many other instructors like to talk your ear off, or tell unrelated stories, and say the same thing over and over again. Personally, I find that extremely boring and I won't subject you to that kind of nonsense. You're paying to learn a new skill, you're NOT paying to hear my life story. There's even a review from a student saying exactly this (above).

How I teach:

Every lesson is designed with a specific pattern to help maximize your learning time. It goes like this:

  1. Learn the theory

  2. Learn the code

  3. Practice the code

I will teach you about a new subject, we will then dive directly into some code so you can see how it works in real life, and there is a task at the end of every lesson for immediate practice. You can watch some free previews if don't believe me.

Other courses have a practice lesson at the end of a section — but I know you want (and need) practice right away, so every lesson has a practice task and it's up to you to decide if you want to do them or not.

Your investment:

You will be learning a skill that can set you free from a boring 9-5 job, help you change careers and help you make more money. If this course helped you earn an extra $1,000 this year, that'd be a great investment, right? Well... when you learn PHP, you can earn A LOT more than that. $1,000 is pennies compared to how much you could make. Or maybe money isn't your #1 motive... you can start a new company and make hobby websites and apps using PHP as your backend programming language.

Your risk:

Udemy has a 30 day money back guarantee. Don't like this course? Didn't have time to take the course? It doesn't matter what the reason is, you can request a refund. And I completely support this! I don't want your money if you are not going to learn from this course, that's an unfair trade in my opinion. You have NOTHING to lose by learning PHP with this course.

Commonly Asked Questions:

Q: Should I learn PHP?

A: ABSOLUTELY!

With over 1 in 3 websites using PHP and over 1,800,000,000 websites (1.8 billion websites as of 2018), it's the smart language to learn. That's over 600,000,000 websites using PHP. That's right. Six hundred MILLION websites.

Q: Can you make money?

A: YES!

When you know PHP, contracts literally fall into your lap. To be honest, I turn down a lot of freelance work because I don't have time for it! Go to indeed dot com and search for PHP: you will see tens of thousands of jobs in the US! These are actual jobs, not just contracts (remote jobs included!)

Q: Will PHP be around in the future?

A: YES!

According to the TIOBE Programming Index, it's the 8th most popular language in the world. And statistically speaking, it's the most popular backend programming language for websites. Remember, over 600,000,000 websites are using PHP (as of 2018).

In this PHP course you will learn how to write raw PHP, what PHP is, and how it works behind the scenes... here are just 22 of the topics you will learn (or check out the curriculum for a full list)

  1. What is PHP

  2. Where is PHP used

  3. How to install PHP

  4. What a backend developer is

  5. PHP syntax

  6. How to make a web page using PHP

  7. Coding comments

  8. PHP variables

  9. PHP super global variables

  10. PHP data types

  11. PHP data structures

  12. How to mix HTML and PHP together

  13. Type casting

  14. Conditional statements (if/elseif/else statements)

  15. Ternary logic

  16. PHP loops (while, for and foreach loops)

  17. PHP debugging

  18. PHP security

  19. How to make websites dynamic without needing a database

  20. How to accept custom user input

  21. How to validate a form (custom user input) to make sure it's usable

  22. How to read and understand PHP documentation

  23. And much more...

At the end of this course is a project you'll be able to finish.

Please look at the list of lessons in this course. And definitely watch some free preview lessons to get an idea of how I teach! I think you'll like it :)

Thanks for reading all of this!

Who this course is for:

  • New web developers
  • People interested in learning PHP (this is the entry into WordPress, Laravel, Symfony and freelancing)
  • People switching careers into web development
  • If you are an intermediate or expert PHP developer, this course is NOT for you