Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

egghead.io

A Complete Introduction to PHP

via egghead.io

Overview

Even as of 2022, PHP continues to drive a significant portion of the web. Node is currently what's popular, and before that Ruby was the big thing, but during it all PHP never died.
And not only has PHP never died, it has aged like a fine bottle of wine; continuing to evolve and grow with a strong community backing it.
In this course, you'll be learning the foundational blocks that make up PHP
Project setup and structure
Variables and constants
Features and gotchas of the type system
Advanced conditional logic
Data structures
Loops and other control flows
Functions and scope
Object oriented programming with classes
Once you finish this course you'll have all the skills you'll need to effectively write PHP!

Syllabus

  • Install PHP with Homebrew
  • Install a PHP IDE editor
  • Start the built-in PHP web server
  • Create a “Hello world!” PHP script
  • Closing tags, semicolons & line breaks in PHP
  • Alternate method of calling PHP language constructs
  • Write short echo tags in PHP
  • Create & name variables in PHP
  • PHP data type assignments
  • Type casting in PHP
  • Type juggling (coercion) in PHP
  • Concatenating strings in PHP
  • String interpolation & escaping in PHP
  • Create a constant in PHP to store a fixed value
  • Create a Boolean variable in PHP
  • Conditionally execute PHP code with an if statement
  • Write multiple conditions to execute alternate PHP code
  • Alternate PHP if statement syntax for view files
  • Refactor a PHP if else statement into a ternary
  • Use a PHP switch statement for advanced conditional logic
  • Use a match statement for advanced PHP data checks
  • Create a list using a PHP array
  • Display the contents of an array with a foreach loop
  • Use an array key to determine current iteration
  • Create a key/value store within a PHP array
  • Create a nested or multi-dimensional array in PHP
  • Get the count of a PHP array
  • Display the contents of an array with a for loop
  • Continue or break out of a PHP loop
  • Purpose of a function in PHP
  • Create a function in PHP
  • Function & global scope in PHP
  • Calling functions with return values in PHP
  • Passing arguments to PHP functions
  • Defining function return & argument types in PHP
  • Type coercion & strict data types in PHP
  • Including or requiring files in PHP
  • Create & instantiate a class in PHP
  • Run code on PHP class creation with a constructor
  • Create class properties in previous versions of PHP
  • Create promoted properties in PHP 8 classes
  • Retrieve public class properties with PHP’s arrow syntax
  • Understanding scope in PHP classes
  • Refactoring functions into PHP classes
  • Defining & using PHP namespaces
  • Replace PHP require statements with the Composer class autoloader

Taught by

Mark Shust

Reviews

4.7 rating at egghead.io based on 14 ratings

Start your review of A Complete Introduction to PHP

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.