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<br>";
}

(more…)

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • LinkedIn
  • Live
  • StumbleUpon
  • Technorati
  • TwitThis
Written by Adam in: 3. Arrays |
Oct
10
2008
0

ZCE Arrays: Associative Arrays

Associative Arrays are the same as Enumerative arrays except in the fact that they are not idexed by numbers (but can be) instead they are indexed by a name. If you read Enumerative arrays you will not that Ringo was indexed as 3, in an Associative array he would be indexed as “drummer”. Like such

$Beatles['drummber'] = "Ringo";
echo $Beatles['drummber']; //Will output Ringo

(more…)

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • LinkedIn
  • Live
  • StumbleUpon
  • Technorati
  • TwitThis
Written by Adam in: Zend Classification General |
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…)

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • LinkedIn
  • Live
  • StumbleUpon
  • Technorati
  • TwitThis
Written by Adam in: 3. Arrays | Tags: , , ,
Oct
09
2008
0

Functions: Variable Scope

If you create a variable in the global scope (in main script, outside of a function) then the value of that variable is not available within the function unless passed to it trough constants, arguments or using superglobals.

List of Superglobal’s

$_GET - receaves data sent to php via script url (?page=1)
$_POST - receaves data sent to php via posting form
$_FILES - receaves data from post file uploads
$_COOKIE - receaves data sent to PHP via HTTP cookies
$_REQUEST - receaves data sent via $_COOKIE,$_POST and $_GET
$_SESSION - receaves data avaliable from previosly stored session
$_SERVER - receaves server information
$_ENV - receaves data avaliable from the PHP environment
and the use of global or $GLOBALS['variable']
(more…)

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • LinkedIn
  • Live
  • StumbleUpon
  • Technorati
  • TwitThis
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…)

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • LinkedIn
  • Live
  • StumbleUpon
  • Technorati
  • TwitThis
Written by Adam in: 2. Functions | Tags: , , ,
Oct
08
2008
0

Functions: Syntax

PHP Functions and I

I have high knowledge of functions therefore this section of the “Zend PHP 5 Certification Blog” is likely to be short but informative. Writing functions is an essential ability I have found functions useful in many ways to such an extent I have a private ill-documented function library.

Define: Functions

A function is just a name we give to a block of code that can be executed whenever we need it. This might not seem like that big of an idea, but believe me, when you understand and use functions you will be able to save a ton of time and write code that is much more readable!
(more…)

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • LinkedIn
  • Live
  • StumbleUpon
  • Technorati
  • TwitThis
Written by Adam in: 2. Functions | Tags: , ,
Oct
07
2008
2

PHP Basics: Language Construct

In this section of the Zend PHP 5 Certification Blog I will be refreshing my knowledge of language constructs, not to be confused with functions! even though they look like them. You should already know of or know how to use these.

Define: Language Construct

A language construct is a syntactically allowable part of a program that may be formed from one or more lexical tokens in accordance with the rules of a programming language.

In PHP they have made Language Construct look like functions, this is to ease simplicity when learning PHP. We should be aware that those listed bellow are “Language Constructs”
(more…)

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • LinkedIn
  • Live
  • StumbleUpon
  • Technorati
  • TwitThis
Oct
05
2008
0

Happy Birthday 20th Me!

Today at about 1PM I will be officially no longer a teenager and reach the age of 20!… I’m writing this so I can look back when Im 30 and own Google, Yahoo. Where the dream started to become officially certified PHP 5 Developer!
*This wont be in the Zend test btw! …. Now I’m off to celibate.

Adam

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • LinkedIn
  • Live
  • StumbleUpon
  • Technorati
  • TwitThis
Written by Adam in: Uncategorized | Tags: ,
Oct
03
2008
0

PHP Basics: Control Structures

In this section of the Blog, their will be examples of Control Structures in PHP. This includes If and Switch statements, including the four types of loops. Not included in this section are objects and functions as they are documented in later posts. ZCE Zend Certification will cover Control Structures in detail in many sections.
(more…)

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • LinkedIn
  • Live
  • StumbleUpon
  • Technorati
  • TwitThis
Written by Adam in: 1. PHP Basics | Tags: , , , , , , , , , , , , ,
Oct
02
2008
0

PHP Basics: Variables and Constants

PHP is all about Variables! If you are intending to take the Zend PHP 5 Certification then you should be already very aware of Variables therefore I’m going to keep this one small and simple. Constants are even simpler than Variables both PHP Variables and Constants basics are bellow and feature (a lot) in the Certification.
(more…)

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • LinkedIn
  • Live
  • StumbleUpon
  • Technorati
  • TwitThis

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