HTML helper functions to make life just a little bit easier.
<?php
function href($url, $anchor, $class = null)
{
$html = "<a ";
if ($class != null) {
$html .= 'class="' . $class . "' ";
}
$html .= 'href="' . $url . '"' . ">" . $anchor . "</a>";
return $html;
}
function img($src, $class = null)
{
$html = "<img ";
if ($class != null) {
$html .= 'class="' . $class . "' ";
}
$html .= 'src=' . $src . ' />';
return $html;
}
?>