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