Runtime Variable Inspection
The most common way to debug is to stick echo statements into your code at strategic places. If you are feeling clever, you might even output a variable's value too: echo "<p>here: $myvar = $myvar";</p> I call this runtime variable inspection and as PHP is a script language, it's a very fast way to debug a script. You stick the echo statement at strategic points and with a few page refreshes in the browser, you… continue reading.