- function_exists: documentation ( source)
- var_export: documentation ( source)
- array_fill_keys: documentation ( source)
- preg_split: documentation ( source)
- mb_str_split: documentation ( source)
<?php
$letters = 'абвгдеёжзийклмнопрстуфхцчшщыэюяabcdefghijklmnopqrstuvwxyz';
if (function_exists('mb_str_split')) {
// PHP7.4 and higher
var_export(array_fill_keys(mb_str_split($letters), []));
} else {
// below PHP7.4
var_export(array_fill_keys(preg_split('~~u', $letters, 0, PREG_SPLIT_NO_EMPTY), []));
}