Oct
10
2008
0

ZCE Arrays: Array Iteration

Output Arrays

You can use the simple way, if you know what the index of the value you want to output such as:

echo $Beatles[2]; //outputs George

OR, we can use a loop to output every beetle:

foreach ($Beatles as $Beatle){
 echo "$Beatle";
}

(more…)

Written by Adam in: 3. Arrays | Tags: , , , , ,
Oct
10
2008
0

ZCE Arrays: Enumerated Arrays

Their are two types of arrays Enumerated Arrays and Associative Arrays with these complex names is just referring to how its index’ed. Arrays will be covered in the PHP5 Zend Certification and high understanding is required.
(more…)

Written by Adam in: 3. Arrays | Tags: , , ,
Oct
08
2008
0

Functions: Arguments and Reference Arguments

Zend PHP 5 Certification Blog will now refresh our memory about passing arguments to functions, its a small and simple topic until we get to “Passing Arguments by Reference” where it may get confusing.

Define: Function Arguments

Information may be passed to functions via the argument list, which is a comma-delimited list of expressions.
(more…)

Written by Adam in: 2. Functions | Tags: , , ,

WordPress Powered, Theme by TheBuckmaker.com | Add to Technorati Favorites. | RSS and Comments RSS