Basics

Operators in Zend PHP 5

Here is an overview of the operators in Zend PHP 5 when studying for the certification. Some of these operators are commonly used in PHP and are essential to master.
Arithmetic Operators
Like with most programming languages, the basic arithmetic operators are as follows:

+ (Adding)
– (Subtracting)
* (Multiplying)
/ (Dividing)

You …

Zend PHP 5 – Basics – Variables

Variables in PHP are represented by a dollar sign followed by the name of the variable.
They can contain letters, numbers and underscores, although must not start with a number.
By convention, variables start with lower case and then each word afterwards starts with a capital letter. Note that variables are case sensitive, so the …

Zend PHP 5 – Basics – Constants

Constants
A constant is an identifier or name given for a simple value. The constants value cannot change during the execution of the script (except for magic constants).
The standard naming convention for constants are always uppercase.
We can define constants a couple of ways. The first is by using the define() function.
define(“FOO”, …

Zend PHP 5 – Basics – Syntax

This article covers the “Syntax” section in the “Basics” chapter of the Zend PHP 5 Certification.
There are currently four ways constructing PHP code. These are:
<?php
// Some stuff
?>
<?
// Some stuff
?>
<script language=’php’>
// Some stuff