Functions in PHP

By the end of this post you will be able to: Define what functions are Identify built-in functions Declare functions Identify functions and arguments Apply the return keyword What are functions? Sections of code that perform a specific task. Functions perform the same task as many times as required by the program.

Processing secure form data in PHP

Learning how to process form data in PHP is an essential requirement of any application. In PHP the good news is this is very simple to do with lots of options available to the developer. However there are plenty of ways to do

Applying and exploring predefined PHP arrays

Predefined arrays in PHP what are they? Pre-prepared scripts for common functions within PHP such as getting and posting data You do not see the code behind them – you just need to know they are there You use them in exactly the same way as any custom

Storing & retrieving data with Arrays

By the end of this post you will be able to: Describe what arrays are Identify how and when to use arrays Identify the difference between Indexed, Associative and Multi-dimensional arrays Apply practical examples of arrays Demonstrate how to use loops with arrays Apply predefined PHP arrays What are arrays? Arrays are essentially

Break and Continue

Break and Continue are designed to provide a third way of working with conditions in loops. Imagine a situation where there was a particular variable that you were listening for that needed acting on - such as applying further validation or cleaning up.

Flow control – For, While and Do-while loops

At the end of this post you will be able to demonstrate how to create and when to apply: A for loop A while loop A do… while loop What are loops? Loops will: Continue to perform an action until a certain condition is met Unlike an if/else statement which finish after

PHP if/else and switch

In this post we will: Demonstrate how to use an if/else statement Evaluate and justify when and demonstrate how to use a switch statement Combine variables and operators to create more complex conditions and outcomes What are conditional statements? Conditional or if/else statements test a variable or value against a

PHP Operators and conditional tests and events

By the end of this pots you should be able to: Identify and apply logical, arithmetic and relational operators to scripts Apply an assignment operator What are operators? Operators are symbols that transform the value of a variable or form comparisons against them. Here are some examples of

Variables and Expressions in PHP

By the end of this post you will be able to: Demonstrate how to use identifiers in PHP Identify datatypes (float, integer, string etc) Create variables in PHP Identify global constants in PHP What are PHP Identifiers/Variables? An identifier is a general term or custom name applied to variables, functions and

What is PHP?

At the end of this post you will be able to: Identify what PHP is Identify the tools and set-up required Create a basic PHP script PHP - Definition PHP (Hypertext Preprocessor) is a server side scripting language.  Straight from the horse mouth the manual states: PHP (recursive acronym for