- var_dump: documentation ( source)
<?php
$row = 'Foo';
echo "What is \$row?\n";
var_dump($row);
$rows = ['Hello', 'Test', 'Wow'];
echo "Now lets run the same thing again, only this time not as reference\n";
foreach ($rows as $row)
{
var_dump($row);
}
echo "And print \$row for the sake of it\n";
var_dump($row);