public function underscore($camelCasedWord) { $_this =& self::getInstance(); if (!($result = $_this->_cache(__FUNCTION__, $camelCasedWord))) { $result = strtolower(preg_replace('/(?<=\\w)([A-Z])/', '_\\1', $camelCasedWord)); $_this->_cache(__FUNCTION__, $camelCasedWord, $result); } return $result; }