Introduction
  • Preparing Your PHP for Beginners Development Environment
PHP Basics
  • Hello, World!
  • How to use the correct syntax in PHP
  • What are PHP Variables?
  • How to assign values to a variable in PHP
  • What PHP data types are available?
  • Echo and Print - how to view PHP output
  • How to add comments to PHP code
  • Variables in PHP
Basic Operators
  • Getting organised before we start the challenges
  • How to add and subtract numbers in PHP
  • How to multiply and divide numbers in PHP
  • How to use the PHP modulus operator
  • How to find a power of a number using PHP
  • Challenge 1: Back to school - TASK
  • Challenge 1: Back to school - SOLUTION
  • Challenge 1: Back to school - CODE
Assignment, Conditional and Logical Operators
  • How to join words and sentences using concatenation in PHP
  • Challenge 2: What's in a name? - TASK
  • Challenge 2: What's in a name? SOLUTION
  • Challenge 2: What's in a name? CODE
  • More concatenation
  • What are the comparison operators in PHP?
  • What are the logical operators in PHP?
  • Counting: Incrementing and Decrementing
IF Statements
  • How to use a basic IF statement in PHP
  • How to use an IF ELSE statement in PHP
  • How to use an ELSEIF statement in PHP
Basic Loops
  • How to use a FOR loop in PHP
  • How to use WHILE loops in PHP
  • Challenge 3: Multiples - TASK
  • Challenge 3: Multiples - SOLUTION
  • Challenge 3: Multiples - CODE
  • Challenge 4: Let's play Fizz Buzz: TASK
  • Challenge 4: Let's play Fizz Buzz: SOLUTION
  • Challenge 4: Let's play Fizz Buzz: CODE
  • Loops
PHP Internal (in-built) Functions
  • How to use the PHP online reference manual
  • How to generate a random number in PHP
  • Challenge 5: Heads, I win! - TASK
  • Challenge 5: Heads, I win! - SOLUTION
  • Challenge 5: Heads, I win! - CODE
  • Challenge 6: Who ate all the pi? - TASK
  • Challenge 6: Who ate all the pi? - SOLUTION
  • Challenge 6: Who ate all the pi? - CODE
  • How to use the date function in PHP
  • Challenge 7: Carpe Diem - TASK
  • Challenge 7: Carpe Diem - SOLUTION
  • Challenge 7: Carpe Diem - CODE
  • Time functions
  • Challenge 8: Santa Claus is coming to town - TASK
  • Challenge 8: Santa Claus is coming to town - SOLUTION
  • Challenge 8: Santa Claus is coming to town - CODE
How to create a form in HTML and send data to a PHP script
  • How to create a basic HTML page structure
  • How to create a basic HTML form
  • How to use form data in PHP
  • Challenge 9: Temperature conversion - TASK
  • Challenge 9: Temperature conversion - SOLUTION
  • Challenge 9: Temperature conversion: CODE
  • Progress Quiz
More Internal Functions: Working with strings
  • How to find the length of a word or sentence in PHP
  • How to count the number of words in a string in PHP
  • Challenge 10: How long is a piece of string? - TASK
  • Challenge 10: How long is a piece of string? - SOLUTION
  • Challenge 10: How long is a piece of string? - CODE
  • How to replace characters in a string
  • How to randomise a string in PHP
  • Challenge 11: Mission impossible - TASK
  • Challenge 11: Mission Impossible - SOLUTION
  • Challenge 11: Mission Impossible - CODE
  • Double versus single quotes in PHP
  • How to escape strings in PHP
  • Challenge 12: The Great Escape - TASK
  • Challenge 12: The Great Escape - SOLUTION
  • Challenge 12: The Great Escape - CODE
How to create and use basic ARRAYS and array functions
  • What is an array in PHP?
  • How to loop through an array in PHP
  • How to split a string and place into an array in PHP
  • Challenge 13: ISBN checker - TASK
  • Challenge 13: ISBN checker - SOLUTION
  • Challenge 13: ISBN checker - CODE
  • Challenge 14: Mind your language! - TASK
  • Challenge 14: Mind your language! - SOLUTION
  • Challenge 14: Mind your language! - CODE
  • How to sort data in an array in PHP
  • How to explode and implode strings
  • How to add elements to an existing array in PHP
  • Challenge 15: Around the world in 80 days - TASK
  • Challenge 15: Around the world in 80 days - SOLUTION
  • Challenge 15: Around the world in 80 days - CODE