by Vindexus · 15y ago · 0 comments
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) . '.'; function echo_r($x){
echo '<pre>';
print_r($x);
echo '</pre>';
}