5 ms·
Probably this one, which I use for testing function becho($value, $key = NULL) { echo '<br /><span style="background: #FFFFFF; color: #000000;"
by Vindexus 15y ago
Probably this one, which I use for testing
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 15y agofunction echo_r($x){ echo '<pre>'; print_r($x); echo '</pre>'; }