ben(ny) pearson|

Notes on the lesson Using the Query String of the the Tuts+ Course PHP Fundamentals by Jeffery Way.

These are my reference notes on the lesson Using the Query String of the the Tuts+ Course PHP Fundamentals by Jeffery Way. Links The PHP Fundamentals course on Tuts+ Jeffery Way on twitter Notes The query string is everything that comes after the question mark in the URL eg. http://benpearson.com.au/index.php?name=jeffery&job=developer The query string contains key value pairs eg. name=jeffery […]

PHP array_merge

Merges the elements of one or more arrays together so that the values of one are appended to the end of the previous one, and returns the resulting array eg. <?php $array1 = array(“color” => “red”, 2, 4); $array2 = array(“a”, “b”, “color” => “green”, “shape” => “trapezoid”, 4); $result = array_merge($array1, $array2); print_r($result); ?> […]

PHP continue

continue is used within looping structures to skip the rest of the current loop iteration and continue execution at the condition evaluation and then the beginning of the next iteration. A basic example that prints “13”, skipping over 2. $arr = array( 1, 2, 3 ); foreach( $arr as $number ) { if( $number == […]