static public function replaceArrayKey($arr = [],$field = '')
    {
        $newArr = [];
        if($arr){
            foreach ($arr as $value) {
                $newArr[$value[$field]] = $value;
            }
        }
        return $newArr;
    }
static public function replaceArrayKey($arr = [],$field = '')
    {
        $newArr = [];
        if($arr){
            foreach ($arr as $value) {
                $newArr[$value[$field]] = $value;
            }
        }
        return $newArr;
    }
static public function replaceArrayKey ( $ arr = [ ] , $ field = '' ) { $ newArr = [ ] ; if ( $ arr ) { foreach ( $ arr as $ value ) { $ newArr [ $ value [ $ field ] ] = $ value ; } } return $ newArr ; }
replace array key
@param array $arr
@param string $field
@return array
replace array key