original_string: public static function indexArrayByValue($input, $value)
      {
          $output = [];
          foreach ($input as $row) {
              $output[$row->$value] = $row;
          }
  
          return $output;
      }
code: public static function indexArrayByValue($input, $value)
      {
          $output = [];
          foreach ($input as $row) {
              $output[$row->$value] = $row;
          }
  
          return $output;
      }
code_tokens: public static function indexArrayByValue ( $ input , $ value ) { $ output = [ ] ; foreach ( $ input as $ row ) { $ output [ $ row -> $ value ] = $ row ; } return $ output ; }
docstring: Reindex an existing array by a value from the array.
  
  @param $input
  @param $value
  
  @return array
docstring_tokens: Reindex an existing array by a value from the array .