Inflector::hyphenToUnderscore PHP Method

hyphenToUnderscore() public static method

public static hyphenToUnderscore ( $string )
    public static function hyphenToUnderscore($string)
    {
        return str_replace('-', '_', $string);
    }

Usage Example

Example #1
0
 protected static function normalize($request)
 {
     if (is_null($request)) {
         $request = Mapper::parse();
     }
     $request['controller'] = Inflector::hyphenToUnderscore($request['controller']);
     $request['action'] = Inflector::hyphenToUnderscore($request['action']);
     return $request;
 }
All Usage Examples Of Inflector::hyphenToUnderscore