If you don't have a debugger installed you will probably find yourself adding numerous echo, var_dump and die/exit commands as you chase through your code.

This function is a very simple but useful addition because it reduces the number of lines you need to add/remoe and also allows you to see basic type information about your data.


function di($in) {
	die ( var_dump ( $in ) );
}

Happy bug hunting!

Jonathan Gibb

http://www.ableglasgowseo.co.uk