underscore-php
underscore-php copied to clipboard
Arrays::replaceKey
It is difficult to know the object's key order,
I suggest to make second input parameter as an associative array.
such as Arrays::replaceKey($post, ['post_id'=>'id']) replace the key post_id by id