(no title)
Vindexus | 14 years ago
function becho($value, $key = NULL)
{
echo '<br /><span style="background: #FFFFFF; color: #000000;">' . (NULL != $key ? $key . ' = ' : '') . $value . '</span>';
}
I also like this one function s($num)
{
return $num == 1 ? '' : 's';
}
Which I use like echo 'Showing ' . $results . ' result' . s($results) . '.';
clyfe|14 years ago