Home > Store > Programming > PHP

Zend PHP Certification Study Guide

Zend PHP Certification Study Guide

eBook (Adobe DRM)

  • Your Price: $19.19
  • List Price: $23.99
  • About Adobe DRM eBooks
  • This eBook requires the free Adobe® Digital Editions software.

    Before downloading this DRM-encrypted PDF, be sure to:

    • Install the free Adobe Digital Editions software on your machine. Adobe Digital Editions only works on Macintosh and Windows, and requires the Adobe Flash Player. Please see the official system requirements.
    • Authorize your copy of Adobe Digital Editions using your Adobe ID (select AdobeID as the eBook vendor). If you don't already have an Adobe ID, you can create one here.

Also available in other formats.

Register your product to gain access to bonus material or receive a coupon.


  • Copyright 2005
  • Pages: 264
  • Edition: 1st
  • eBook (Adobe DRM)
  • ISBN-10: 0-7686-6408-X
  • ISBN-13: 978-0-7686-6408-9

The first and only officially authorized book on the PHP Certification exam developed by Zend Technologies, the commercial developer of PHP. Zend's PHP Certification exam is a high-quality, carefully developed exam designed to enhance and certify the skills of the PHP professional. The Zend PHP Certification Study Guide is a concise, densely packed book that will get you up to speed quickly on the nature of the exam's questions and what to expect on exam day. It's authoritative content comes directly from those writing the exam at Zend Technologies.

Sample Content

Table of Contents


    What Does This Guide Cover?

      How Is the Guide Organized?

    Other Resources You Might Want to Consult.

1. The Basics of PHP.

    Terms You’ll Need to Understand.

    Techniques You’ll Need to Master.

    Language and Platform.

    Getting Started.

      The Special <?= ?> Tags.

    Scripts and Files.

      Manipulating Data.

      Numeric Values.

      String Values.

      Boolean Values.



      The NULL Data Type.


    Identifiers, Constants, and Variables.


      Variable Substitution in Strings.




      The Assignment Operator.

      Arithmetic Operators.

      Bitwise Operators.

      Error-control Operators.

      String Operators.

      Comparison Operators.

      Logical Operators.


      Combined Assignment Operators.

      Combining Operations: Operator Precedence and Associativity.

    Conditional Structures.

      Alternative if-then-else Syntax.

       Short-form if-then-else .

      The case Statement.

    Iteration and Loops.

      The while Structure.

      The do-while Structure.

      The for Loop.

      Continuing a Loop.

    Functions and Constructs.

      Functions and Variable Scope.

      Functions with Variable Parameters.

      Variable Variables and Variable Functions.

    Exam Prep Questions.

2. Object-Oriented PHP.

    Terms You’ll Need to Understand.

    Techniques You’ll Need to Master.

    Getting Started.

    Instantiating a Class: Objects.

    Classes as Namespaces.

    Objects and References.

    Implementing Inheritance.

    Magic Functions: Serializing Objects.

    Exam Prep Questions.

3. PHP and the Web.

    Terms You’ll Need to Understand.

    Techniques You’ll Need to Master.

     Server-side Versus Client-side.

    HTML Forms.



    Exam Prep Questions.

4. Arrays.

    Terms You’ll Need to Understand.

    Techniques You’ll Need to Master.

    Creating Arrays.

      Using the Array Operator.

      Counting the Number of Elements in an Array.

      Assigning Values from an Array to Multiple Variables.

    Multidimensional Arrays.

    Navigating Arrays.

      Using foreach .

      Using the Internal Pointer.

      Using a Callback.

    Manipulating Keys.

      Checking if an Element Exists.

      Changing the Array of Keys.

      Sorting an Array by Its Keys.

    Manipulating Arrays.

      Sorting Multidimensional Arrays.

      Randomizing Arrays.

      Merging Arrays.

      Intersection and Difference.

    Serializing Arrays.

    Exam Prep Questions.

5. Strings and Regular Expressions.

    Terms You’ll Need to Understand.

    Techniques You’ll Need to Master.

    Comparing Strings.

      Comparison with == and === .

      Using strcmp and Friends.

      Matching Portions of Strings.

    Formatting Strings.

      printf Formats.

      printf() Family Functions.

    Extracting Data from Strings.

      Extracting Substrings by Offset.

      Extracting Formatted Data.

    Modifying Strings.

      Modifying Substrings by Offset.

      Replacing Substrings.

    Regular Expressions.

      Basic PCRE Syntax.

      Extracting Data with Regular Expressions.

      Pattern Replacement with Regular Expressions.

      Splitting Strings into Components.

    Exam Prep Questions.

6. File Manipulation.

    Techniques You’ll Need to Master.

    Terms You’ll Need to Understand.

    Opening Files.

    Closing Files.

    Reading from a File.

    Writing to a File.

    Determining Information About Files.

    Manipulating Files on the Filesystem.

      Copying, Deleting, and Moving Files.

      Changing Ownership and Permissions.

    Locking Files.

    Miscellaneous Shortcuts.

      file() .

      readfile() .

      file_get_contents() .

    Exam Prep Questions.

7. Managing Dates and Times.

     Terms You’ll Need to Understand.

    Techniques You’ll Need to Master.

    How PHP Handles Dates.

    Getting the Current Time Stamp.

    Getting a Date Array.

    Formatting a Date String.

    Getting a UNIX Time Stamp from a Date Array.

    Getting A UNIX Time Stamp from a String.

    Exam Prep Questions.

8. Managing Email.


      Terms You’ll Need to Understand.

      Techniques You’ll Need to Master.

    How Email Is Delivered.

      MTA–Mail Transport Agent.

      SMTP–Simple Mail Transport Protocol.

      MX Records.

      MUA–Mail User Agent.

      SASL–Simple Authentication and Security Layer.

      Other Emerging Technologies.

    Preparing PHP.

      If You Are Using PHP on UNIX.

      If You Are Using PHP on Windows or Netware.

    Sending Email.

      Sending an Email to More Than One Recipient.

    Managing Email Headers.

      The Cc: and Bcc: Headers.

      The From: Header.

    Setting the Subject.

    Formatting an Email Message.

      Plain-Text Emails.

      Basic HTML Emails.

    Attaching a File to a Message.

      Attached Images for HTML Emails.

    Using Extra Command-Line Parameters.

    A Word About Email Delivery.

    Further Reading.

    Exam Prep Questions.

9. PHP and Databases.

    Terms You’ll Need to Understand.

    Techniques You’ll Need to Master.



      Writing Good Indices.

      Primary Keys.

      Foreign Keys and Relations.

    Creating Tables or Adding and Removing Rows.

      Inserting a Row.

      Deleting Rows.

    Retrieving Information from a Database.

    Extracting Data from More Than One Table.

    Aggregate Functions.



    PHP and Databases.

      There’s Date and Date.

    Exam Prep Questions.

10. Stream and Network Programming.

    Terms You’ll Need to Understand.

    Techniques You’ll Need to Master.

     php.ini Settings to Understand.

    What Are File Wrappers?

      How Do You Choose Which File Wrapper Is Used?

      What Built-In Wrappers Does PHP Provide?

      Not All Wrappers Are Created Equal.

      Using a File Wrapper.

      Correctly Detecting Line Endings.

      Closing a File Wrapper.

      Other Functions That Work with File Wrappers.

    Introducing Streams.

      What Is Stream Metadata?


      What Is the Stream Transport?

      What Is the Stream Context?

      How Do Streams Affect Me?

    Connecting to Remote Hosts Using Sockets.

      When Should I Use a Socket Instead of a File Wrapper?

      What Network Transports Does PHP Support?

      How Do I Open a Socket?

      Persistent Sockets.

      Timeouts When Opening a Socket.

      How Do I Use a Socket?

      Blocking Mode.

      Read/Write Timeouts.

      Closing a Socket.

    Further Reading.

    Exam Prep Questions.

11. Security.

    Terms You’ll Need to Understand.

    Techniques You’ll Need to Master.

    Data Filtering.

    Register Globals.

    SQL Injection.

    Command Injection.

    Cross-Site Scripting.

    Shared Hosting.

    Exam Prep Questions.

12. Debugging and Performance.

    Terms You’ll Need to Understand.

    Techniques You’ll Need to Master.

    Coding Standards.

      Flattening if Statements.

      Splitting Single Commands Across Multiple Lines.

      Concatenation Versus Substitution.

      Choose Your Opening Tags Carefully.

    One Equal, Two Equals, Three Equals.

      There’s Equal and Equal.

    Testing for Resource Allocation.

    Ternary Operators and if Statements.

    Logging and Debugging.

      Using Debuggers.

    Optimizing Performance.

      Hardware Issues.

       Web Server Issues.

      Avoid Overkill.

      Zip It Up.

    Database Optimizations.

      Keep Your Code Simple.

    Caching Techniques.

      Bytecode Caches.

    Exam Prep Questions.

13. Getting Ready for the Certification Exam.

    What the Exam Tests.

    How to Register.

      Registration via Pearson VUE Call Center.

      Registration via the Person VUE Website.

      Registration at the Test Center.

    What to Expect at the Test Center.

    How the Exam Works.

      Exam Instructions.


      Viewing Backward and Forward.

      Reviewing Your Answers.

      Your Comments.

    What Kinds of Questions Are Asked?

      Single Choice Questions.

      Multiple Choice Questions.

      Fill in the Blanks Questions.

       Open Questions.

Practice Exam Questions.




Submit Errata

More Information

Unlimited one-month access with your purchase
Free Safari Membership