@@ 2574-2581 (lines=8) @@ | ||
2571 | * |
|
2572 | * @return mixed |
|
2573 | */ |
|
2574 | public function max() |
|
2575 | { |
|
2576 | if (\count($this->array, COUNT_NORMAL) === 0) { |
|
2577 | return false; |
|
2578 | } |
|
2579 | ||
2580 | return max($this->array); |
|
2581 | } |
|
2582 | ||
2583 | /** |
|
2584 | * Merge the new $array into the current array. |
|
@@ 2682-2689 (lines=8) @@ | ||
2679 | * |
|
2680 | * @return mixed |
|
2681 | */ |
|
2682 | public function min() |
|
2683 | { |
|
2684 | if (\count($this->array, COUNT_NORMAL) === 0) { |
|
2685 | return false; |
|
2686 | } |
|
2687 | ||
2688 | return min($this->array); |
|
2689 | } |
|
2690 | ||
2691 | /** |
|
2692 | * Move an array element to a new index. |