acf_str_camel_case() ACF 5.8.0
Converts a string into camelCase. Thanks to https://stackoverflow.com/questions/31274782/convert-array-keys-from-underscore-case-to-camelcase-recursively
Хуков нет.
Возвращает
Строку.
Использование
acf_str_camel_case( $string );
- $string(строка)
- The string ot convert.
Список изменений
С версии 5.8.0 | Введена. |
Код acf_str_camel_case() acf str camel case ACF 5.9.1
function acf_str_camel_case( $string = '' ) {
return lcfirst(str_replace(' ', '', ucwords(str_replace('_', ' ', $string))));
}