src/ICal/Event.php
protected static function snakeCase($input, $glue = '_', $separator = '-')
    {
        $input = preg_split('/(?<=[a-z])(?=[A-Z])/x', $input);
        $input = join($input, $glue);
        $input = str_replace($separator, $glue, $input);

        return strtolower($input);
    }
protected static function snakeCase($input, $glue = '_', $separator = '-')
    {
        $input = preg_split('/(?<=[a-z])(?=[A-Z])/x', $input);
        $input = join($input, $glue);
        $input = str_replace($separator, $glue, $input);

        return strtolower($input);
    }
protected static function snakeCase ( $ input , $ glue = '_' , $ separator = '-' ) { $ input = preg_split ( '/(?<=[a-z])(?=[A-Z])/x' , $ input ) ; $ input = join ( $ input , $ glue ) ; $ input = str_replace ( $ separator , $ glue , $ input ) ; return strtolower ( $ input ) ; }
Converts the given input to snake_case

@param  string $input
@param  string $glue
@param  string $separator
@return string
Converts the given input to snake_case