Welcome Guest, Not a member yet? Register   Sign In
Total noob lookin' for some help...
#10

[eluser]thomasz[/eluser]
My standard code for debugging and testing array values is this:

echo "<pre>";
print_r($array_name);
echo "</pre>";
exit;

The html '<pre>' tags preserve the line breaks so the print_r output is formatted and readable. I put this block of code as a ctl+key shortcut in my editor so i can use it quickly. It saves lots of time.


Messages In This Thread
Total noob lookin' for some help... - by El Forum - 11-20-2008, 09:50 AM
Total noob lookin' for some help... - by El Forum - 11-20-2008, 12:10 PM
Total noob lookin' for some help... - by El Forum - 11-20-2008, 12:33 PM
Total noob lookin' for some help... - by El Forum - 11-20-2008, 12:35 PM
Total noob lookin' for some help... - by El Forum - 11-20-2008, 01:20 PM
Total noob lookin' for some help... - by El Forum - 11-20-2008, 02:29 PM
Total noob lookin' for some help... - by El Forum - 11-20-2008, 02:36 PM
Total noob lookin' for some help... - by El Forum - 11-21-2008, 03:51 AM
Total noob lookin' for some help... - by El Forum - 11-21-2008, 09:14 AM
Total noob lookin' for some help... - by El Forum - 11-22-2008, 12:52 PM
Total noob lookin' for some help... - by El Forum - 11-22-2008, 01:12 PM



Theme © iAndrew 2016 - Forum software by © MyBB