Last active
January 18, 2020 23:21
-
-
Save salarmehr/22ead76ccc24d915bd97691af5c151ea to your computer and use it in GitHub Desktop.
PHP array functions grouped
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
K works on keys | |
V working on Values | |
E returns values indicates an exception | |
C can work on both key or valeus depencs on params | |
P preserve the keys from input arrays | |
R get array by refrence | |
Array creation | |
============== | |
array_chunk | |
array_slice | |
array_splice | |
array_filter | |
array_map | |
array_merge | |
array_merge_recursive | |
array_replace | |
array_replace_recursive | |
array_reverse | |
array_unique | |
shuffle | |
array_change_key_case K | |
array_column V | |
array_count_values V | |
array_combine | |
array_values | |
array_fill | |
array_flip | |
array_keys | |
range | |
array_fill_keys | |
Modification | |
============ | |
array_pad | |
array_pop R | |
array_push R | |
array_shift R | |
array_unshift R | |
array_walk R | |
Data retrivial | |
============== | |
array_product | |
array_sum | |
array_rand | |
array_reduce | |
array_search | |
array_key_exists | |
array_key_first | |
array_key_last | |
Set Opersation | |
============== | |
array_diff VP | |
array_udiff VP | |
array_diff_key KP | |
array_diff_ukey KP | |
array_diff_assoc VKP | |
array_diff_uassoc VKP | |
array_udiff_assoc KP | |
array_udiff_uassoc VP | |
array_interscet VP | |
array_uinterscet VP | |
array_interscet_key KP | |
array_interscet_ukey KP | |
array_interscet_assoc VKP | |
array_interscet_uassoc VKP | |
array_uinterscet_assoc KP | |
array_uinterscet_uassoc VP |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment