- var_dump: documentation ( source)
<?php
if (true) {
$count++;
$block_1 .= <<<EOT
<figure id=\"img{$count}\">
<div class="image"><img src=\"{$row['imgpath']}\" alt=\"{$row['shortdesc']}\"></div><figcaption>
<h1 class=\"product\">{$row['product']}</h1>
<p class=\"description\">{$row['longdesc']}</p>
</figcaption>
</figure>
EOT;
$block_2 .= '<a href="#img'.$count.'"><img src="'.$row['imgpath'].'" alt="'.$row['shortdesc'].'"></a>';
}
var_dump($block_1);