Berserker – PHP array functions supported
Again as I said in other supported page, I will make support of the most used array functions not all functions. For example chunk, compact, array_values etc
In the following table ? significate that the function is on dubt, on dubt if woth it? To be made a support or will not be supported.
PHP Functions | berserker function | supported |
---|---|---|
array | – | will not be supported |
array_change_key_case | bArrays::lowercase bArrays::uppercase |
yes |
array_chunk | bArrays::chunk | yes |
array_column | bArrays::column | yes |
array_combine | bArrays::combine | no |
array_count_values | bArrays::valuesOccurrences | yes |
array_diff | bArrays::difference | no |
array_diff_assoc | bArrays::differenceFC (index will be compared too)(Full compared) |
? |
array_diff_key | bArrays::keyDifference | no |
array_diff_uassoc | bArrays::usr_DifferenceFC (index will be compared too)(Full compared) |
? |
array_diff_ukey | bArrays::usr_KeyDifference | ?(on dubt) |
array_fill | bArrays::fill | no |
array_fill_keys | bArrays::fillKeys | no |
array_filter | bArrays::filter | no |
array_flip | bArrays::flip | no |
array_intersect | bArrays::intersection | no |
array_intersect_assoc | – | no |
array_intersect_key | ? | |
array_intersect_uassoc | ? | |
array_intersect_ukey | – | ? |
array_is_list | bArrays::isList | ? |
array_key_exists | bArrays::keyExists | yes |
array_key_first | bArrays::firstKey | yes |
array_key_last | bArrays::lastKey | yes |
array_keys | bArrays::keys | yes |
array_map | bArrays::map | no |
array_merge | bArrays::merge | no |
array_merge_recursive | bArrays::recursiveMerge | ? |
array_multisort | bArrays::multisort | ? |
array_pad | ? | |
array_pop |
bArrays::pop bArrays::removeLast |
yes |
array_product | bArrays::product | no |
array_push | bArrays::push bArrays::append |
yes |
array_rand |
bArrays::randomKeys bArrays::randomKey |
no |
array_reduce | bArrays::reduce | ? |
array_replace | bArrays::replaceElements | no |
array_replace_recursive | bArrays::recursiveReplace | no |
array_reverse | bArrays::reverse | yes |
array_search | bArrays::search | yes |
array_shift | bArray::removeFirst bArray::shift |
yes |
array_slice |
bArrays::slice bArrays::portion |
yes |
array_splice | bArrays::splice | no |
array_sum | bArray::sumValues | yes |
array_udiff | – | ? |
array_udiff_assoc | – | ? |
array_udiff_uassoc | – | ? |
array_uintersect | – | ? |
array_uintersect_assoc | – | ? |
array_uintersect_uassoc | – | ? |
array_unique | bArrays::unique | yes |
array_unshift | bArrays::unshift bArrays::prepend |
yes |
array_values | bArrays::values | yes |
array_walk | bArrays::walk | no |
array_walk_recursive | bArrays::recursiveWalk | no |
arsort | bArrays::sortByValuesDESC | (will be on next version) |
asort | bArrays::sortByValuesASC | no |
compact | bArrays::makeFrom | yes |
count /sizeof | bArrays::length | yes |
current | bArrays::actualElement | ?(on dubt) |
end | bArrays::lastElement | ?(on dubt) |
extract | ?(on dubt) | |
in_array | bArrays::valueExists | yes |
key | – | will not be supported |
key_exists | bArrays::keyExists | yes |
krsort | bArrays::descendingKeySort | yes |
ksort | bArrays::ascendingKeySort | yes |
list | ?(on dubt) | |
natcasesort | bArrays::naturalOrderedCI (natural ordered case insensitive) |
no |
natsort | bArrays::naturalOrdered | no |
next | -(on loop) | will not be supported |
pos | -(on loop) | will not be supported |
prev | -(on loop) | will not be supported |
range | -(built-in function) | will not be supported |
reset | -(on loop) | will not be supported |
rsort | bArrays::descendingSort | yes |
shuffle | bArrays::shuffle | no ?(on dubt) |
sort | ascendingSort | yes |
uasort | usr | ?(on dubt) |
uksort | usr | ?(on dubt) |
usort | usrAscendingSort | ?(on dubt) |