This post covers the Performance section of the PHP Basics chapter when studying for the Zend PHP 7 Certification.
There are two major areas in which performance is affected in PHP. The first area is reduced memory usage, and the second area is run-time delay when the garbage collection mechanism performs its memory cleanups.
Reduced …
This post covers the Configuration section of the PHP Basics chapter when studying for the Zend PHP 7 Certification.
Configuration files establish the initial settings for applications, as well as servers and operating systems. For PHP, configuration resides in the php.ini file.
php.ini is read when PHP starts up. For the server module versions of …
This post covers the Extensions section of the PHP Basics chapter when studying for the Zend PHP 7 Certification.
The most common way for PHP extensions to be loaded is through the php.ini configuration file.
Usually on UNIX based servers, there may be more than one php.ini files on a server. Therefore, to find out …
This post covers the Namespaces section of the PHP Basics chapter when studying for the Zend PHP 7 Certification.
Namespaces are a method of grouping related PHP code elements within a library or application.
Namespaces are use to solve a couple of problems including naming collisions, which most likely occur when code from multiple people …
This post covers the Language Constructs section of the PHP Basics chapter when studying for the Zend PHP 7 Certification.
Language constructs are hard coded into the PHP language. Most of the constructs have unique behaviour, in that they can almost bypass some kind of error handling mechanism.
For instance, isset() can be used …
This post covers the Variables section of the PHP Basics chapter when studying for the Zend PHP 7 Certification.
Control structures are a fundamental feature in programming. They allow a script to react differently depending on what has already occurred or based on user input.
We can break down control structures into two different sections: …
This post covers the Variables section of the PHP Basics chapter when studying for the Zend PHP 7 Certification.
In PHP, variables are represented by a dollar sign, $, followed by the name of the variable.
$foo = ‘bar’;
They can contain letters, numbers and underscores, although must not start with a number.
By convention, …
This post covers the Operators section of the PHP Basics chapter when studying for the Zend PHP 7 Certification.
A constant is an identifier given for a simple value. The value for non-magic constants cannot change during the execution of the script.
The naming convention of a constant follows the same rules as labelling a …
This post covers the Operators section of the PHP Basics chapter when studying for the Zend PHP 7 Certification.
The several types of operators covered are operators commonly used in programming: Arithmetic, Bitwise, Assignment, Comparison, String, Array, Logical, Type and Execution.
Arithmetic Operators
Like with most programming languages, the basic arithmetic operators are represented by …
This post covers the Syntax section of the PHP Basics chapter when studying for the Zend PHP 7 Certification.
When the PHP parser parses a file, it looks for opening and closing tags, which are <?php and ?> respectively.
PHP then will interpret code between them, which allows you to embed code in different documents, …