PDA

View Full Version : print_r equivalent


stevegrant
01-20-2010, 05:22 AM
Is there a vb template syntax equivalent to the PHP print_r method, which would allow me to display array contents?

I'm trying (and failing at the moment) to iterate through a multi-dimensional array and would like to see what vb is looking at compared to what I think it should be looking at...

derfelix
01-20-2010, 05:44 AM
Well I think print_r is still the best...
I just place it before the template call...
with pre...
print "<pre>";print_r($arraytolookat);exit;

BBR-APBT
01-20-2010, 07:45 PM
<a href="https://vborg.vbsupport.ru/showthread.php?t=228078" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=228078</a>

Adrian Schneider
01-20-2010, 07:46 PM
var_dump is the best one for that. Especially if you have xdebug extension installed. :)

Cheers