egghead
Search
Search
Log In
Search
Search
A Complete Introduction to PHP by Mark Shust
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
egghead
System