egghead.io
Download
Autoplay
Turn autoplay on
1
Install PHP with Homebrew
4m 25s
2
Install a PHP IDE editor
1m 58s
3
Start the built-in PHP web server
2m 36s
4
Create a “Hello world!” PHP script
2m 1s
5
Closing tags, semicolons & line breaks in PHP
2m 58s
6
Alternate method of calling PHP language constructs
1m 8s
7
Write short echo tags in PHP
1m 53s
8
Create & name variables in PHP
2m 25s
9
PHP data type assignments
3m 27s
10
Type casting in PHP
2m 5s
11
Type juggling (coercion) in PHP
2m 48s
12
Concatenating strings in PHP
3m 8s
13
String interpolation & escaping in PHP
1m 38s
14
Create a constant in PHP to store a fixed value
4m 40s
15
Create a Boolean variable in PHP
3m 28s
16
Conditionally execute PHP code with an if statement
1m 48s
17
Write multiple conditions to execute alternate PHP code
3m 24s
18
Alternate PHP if statement syntax for view files
3m 36s
19
Refactor a PHP if else statement into a ternary
3m 33s
20
Use a PHP switch statement for advanced conditional logic
4m 12s
21
Use a match statement for advanced PHP data checks
3m 7s
22
Create a list using a PHP array
1m 11s
23
Display the contents of an array with a foreach loop
1m 56s
24
Use an array key to determine current iteration
1m 26s
25
Create a key/value store within a PHP array
2m 19s
26
Create a nested or multi-dimensional array in PHP
2m 34s
27
Get the count of a PHP array
2m 32s
28
Display the contents of an array with a for loop
3m 38s
29
Continue or break out of a PHP loop
2m 18s
30
Purpose of a function in PHP
1m 34s
31
Create a function in PHP
1m 52s
32
Function & global scope in PHP
1m 53s
33
Calling functions with return values in PHP
3m 33s
34
Passing arguments to PHP functions
2m 28s
35
Defining function return & argument types in PHP
2m 19s
36
Type coercion & strict data types in PHP
4m 26s
37
Including or requiring files in PHP
4m 18s
38
Create & instantiate a class in PHP
2m 13s
39
Run code on PHP class creation with a constructor
2m 23s
40
Create class properties in previous versions of PHP
2m 47s
41
Create promoted properties in PHP 8 classes
2m 12s
42
Retrieve public class properties with PHP’s arrow syntax
1m 43s
43
Understanding scope in PHP classes
4m 1s
44
Refactoring functions into PHP classes
3m 18s
45
Defining & using PHP namespaces
4m 19s
46
Replace PHP require statements with the Composer class autoloader
4m 13s
Display the contents of an array with a foreach loop
Instructor
Mark Shust
PHP
Share this video with your friends
Send Tweet
Copy link
Iterating, or looping over an array is very easy with PHP's foreach loop.
Course
A Complete Introduction to PHP
Transcript
Comments
(0)