original_string: protected static function array_nth(array $a, $n) {
          $keys = array_keys($a);
          if ($n < 0 or $n > count($keys) - 1) {
              return null;
          }
          $key = $keys[$n];
          return $a[$key];
      }
code: protected static function array_nth(array $a, $n) {
          $keys = array_keys($a);
          if ($n < 0 or $n > count($keys) - 1) {
              return null;
          }
          $key = $keys[$n];
          return $a[$key];
      }
code_tokens: protected static function array_nth ( array $ a , $ n ) { $ keys = array_keys ( $ a ) ; if ( $ n < 0 or $ n > count ( $ keys ) - 1 ) { return null ; } $ key = $ keys [ $ n ] ; return $ a [ $ key ] ; }
docstring: Helper function returning the n-th item of the array
  
  @param array $a
  @param int   $n from 0 to m, where m is th number of items in the array
  @return mixed the $n-th element of $a
docstring_tokens: Helper function returning the n - th item of the array