25.09.2014 Views

ZEND PHP 5 Certification STUDY GUIDE

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Differences Between <strong>PHP</strong> 4 and 5 ” 255<br />

• __isset() is called when passing an undefined property to the isset() construct.<br />

• __unset() is called when passing an undefined property to unset().<br />

• __toString() is called when trying to directly echo or print() an object.<br />

• __set_state() is inserted dynamically by var_export() to allow for reinitialization<br />

on execution of var_export()’s output.<br />

Selected New Extensions<br />

• SimpleXML allows easy access to XML data using object and array notation.<br />

• <strong>PHP</strong> 5 also introduces a DOMXML, DOMXSL and Sablotron replacement in<br />

the form of the libxml2-based DOM and XSL extensions.<br />

• The <strong>PHP</strong> Data Objects (PDO) extension provides a unified database access extension<br />

that allows access to many different types of database systems by using<br />

a common interface. PDO is not an abstraction layer—except for prepared<br />

queries, it does nothing to abstract the actual database code (SQL), itself.<br />

• The hash extension is a new replacement for the GPLed libmhash; it was added<br />

to the <strong>PHP</strong> core starting with version 5.1.2. It can produce hashes using many<br />

algorithms, including the familiar MD5 and SHA1, as well as some more secure<br />

(albeit slower) algorithms, such as snefru.<br />

• The Standard <strong>PHP</strong> Library (SPL) provides numerous interfaces that enhance<br />

the way classes interact with the <strong>PHP</strong> language, including the new Iterator<br />

interfaces.<br />

Licensed to 482634 - Amber Barrow (itsadmin@deakin.edu.au)<br />

• The new Reflection extension allows for runtime introspection of executing<br />

<strong>PHP</strong> code.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!