public function dasherize($underscoredWord)
    {
        if ($result = $this->getCache($underscoredWord, 'dasherize')) {
            return $result;
        }

        $result = str_replace('_', '-', $this->underscore($underscoredWord));
        return $this->setCache($underscoredWord, 'dasherize', $result);
    }
public function dasherize($underscoredWord)
    {
        if ($result = $this->getCache($underscoredWord, 'dasherize')) {
            return $result;
        }

        $result = str_replace('_', '-', $this->underscore($underscoredWord));
        return $this->setCache($underscoredWord, 'dasherize', $result);
    }
public function dasherize ( $ underscoredWord ) { if ( $ result = $ this -> getCache ( $ underscoredWord , 'dasherize' ) ) { return $ result ; } $ result = str_replace ( '_' , '-' , $ this -> underscore ( $ underscoredWord ) ) ; return $ this -> setCache ( $ underscoredWord , 'dasherize' , $ result ) ; }
Replaces underscores with dashes in the string.

Example:
1. dasherize("puni_puni") => "puni-puni"
Replaces underscores with dashes in the string .