Originally Posted by
lewisasding
Back in BASIC days I could STOP, HALT or PAUSE a program and type in the variable name(s), which would then appear on the VDU or be sent to a printer.
In places where you used to use STOP, etc, enter the following code.
Code:
require('dump.php'); // pretty variable dumps dump($var)
var_dump( get_defined_vars() );die();
Also, if you haven't yet discovered the joys of using a modern IDE I would strongly recommend you download one and learn how to use it. My preference is NetBeans, but there are several others that are equally good (and arguably better). Although these things may appear to have a lot of 'bloat' (especially for old time programmers, such as myself), and I still occasionally resort to 'hand coding' and using break commands to follow program flow, I think trying to code without a decent IDE these days is like riding a horse and buggy into town when everyone else is driving a car.
Cheers
Rod
Bookmarks