I\'d like to debug some PHP code, but I guess printing a log to screen or file is fine for me.
How should I print a log in PHP code?
The u
Simply way is trigger_error:
trigger_error("My error");
but you can't put arrays or Objects therefore use
var_dump