Heredoc string ( $MyString = <<<_END ) terminating markers The terminating marker must be at the start of a line and also the only thing on the line – no comment or even whitespace after it!!!
Category: .Debugging
Useful Debugging Examples
Echo echo “Line: ” . __LINE__ . ” of file: ” . __FILE__; Var Dump var_dump(
Debugging PHP
Useful debugging things Debugging arrays Display errors Add “display_errors = On” in your PHP configuration file to cause errors to be displayed. This is a really useful debugging feature and is often the best first step of debuigging to determin why something isn’t working. Turning on in a file Tip: Look for a error_log file […]