Cameron Garnett/Testpage11
Contents
Super Quick PHP Tutorial
Introduction | Basic Syntax | Sending Data to the Browser | Comments | Variables | Strings | Functions | Quotes | Debugging | Form
Learning ObjectivesBy the end of this page you will know some technique's used when you are debugging php code. |
Debugging
Return values returns an associative array describing the last error with keys "type", "message", "file" and "line". If the error has been caused by a PHP internal function then the "message" begins with its name. Returns NULL if there hasn't been an error yet
Example<?php |
This should output something similar to:Array |
In the next example the debug_backtrace() function is used. debug_backtrace() generates a PHP backtrace.
Example<?php |