top | item 2771328

(no title)

Vindexus | 14 years 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) . '.';

discuss

order

clyfe|14 years ago

    function echo_r($x){
        echo '<pre>';
        print_r($x);
        echo '</pre>';
    }