Functions Used for Debugging : var_dump « XML « PHP






Functions Used for Debugging

 
Name                   Description

echo()                 Prints a simple variable or value

print()                Prints a simple variable or value

printf()               Prints a formatted string

var_dump()             Prints the type and content of a variable

print_r()              Recursively prints the content of an array or object

debug_backtrace()      Returns an array with the call stack and other values


<?php
include 'debug.inc';

$a = array('orange', 'apple');
debug_print($a);
?>
<?php
include 'debug1.inc';

$a = array('orange', 'apple');
debug_print($a);
debug_print($a, __FILE__, __LINE__);
?>
  
  








Related examples in the same category

1.Displaying Type Information with var_dump()
2.Dump a multidimensional array