acf_str_camel_case()
acf_str_camel_case
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 6.0.4
function acf_str_camel_case( $string = '' ) { return lcfirst( str_replace( ' ', '', ucwords( str_replace( '_', ' ', $string ) ) ) ); }