library/Garp/Util/String.php
static public function underscoredToReadable($str, $ucfirst = true) {
        if ($ucfirst) {
            $str = ucfirst($str);
        }
        $str = str_replace("_", " ", $str);
        return $str;
    }
static public function underscoredToReadable($str, $ucfirst = true) {
        if ($ucfirst) {
            $str = ucfirst($str);
        }
        $str = str_replace("_", " ", $str);
        return $str;
    }
static public function underscoredToReadable ( $ str , $ ucfirst = true ) { if ( $ ucfirst ) { $ str = ucfirst ( $ str ) ; } $ str = str_replace ( "_" , " " , $ str ) ; return $ str ; }
Converts 'doggy_dog_world_id' to 'Doggy dog world id'

@param string $str
@param bool $ucfirst Wether to uppercase the fist character
@return string
Converts doggy_dog_world_id to Doggy dog world id