Array flip and reverse in php
array_flip function is quite useful when you only want to shift array index as array value and vice-verse. On the other hand, if you want to change only array index in descending/reverse order then array_reverse function works great. Array flip convert key in to index and index in to key. $a = array (0 => […]
