<ul class="top_ads">
<?php
$totalImages = 5;
$all = range(1,$totalImages);
shuffle($all);
foreach ($all as $single) {
echo "<li><a href='' /><img src='"; echo bloginfo('template_url') . "/images/ads/ad_0$single.png' alt='ad' /></li>";
}
?>
</ul>
can anyone please explain bloginfo('template_url') within this php code? sorry, if it seems trivial to you. also the path "/images/ads/ad_0$single.png". I am learning php. Thank you.
Which function I need to use in place of bloginfo('template_url') if I do not use wordpress but php as a template engine? anyone helps me?