Reindex array by increasing and decreasing all of top indexes
问题 First, I have to list what I have found How to Remove Array Element and Then Re-Index Array? PHP reindex array? They did not make sense in my case. I have fallen into ridiculous request and I've force to find the way out, then please don't ask me why I want to do that. I have below array $input = array( 0=>array('a', 'b'=>array('c')), 1=>array('b', 'c'=>array('d')), 2=>array('c', 'd'=>array('e')), ); I want to increase all of keys by 1 or decrease by 1 (acceptable to index is negative int