/** * Convert a string to camelCase. * * @param $string * @param array $delimiters * * @return string */ function str_camel_case($string, array $delimiters = ['-', '_']) { return lcfirst(str_studly_caps($string, $delimiters)); }
/** * @dataProvider str_studly_case_provider */ public function test_str_studly_case($expected, $string) { $this->assertEquals($expected, str_studly_caps($string)); }