This function allows you to print the contents of any variable, including a constructed object and an array.
$array=array(‘a’, ‘c’, ‘d’, ‘b’);
Array (  => a  => c  => d  => b )
You can also utilize this to print out all of the variables that are defined (with global scope) at any point in the script. Using the statement: