Subject: PHP

Find the Maximum and Minimum

Create a PHP function that returns the maximum and minimum values from a given array.

Example:
Input: [12, 3, 45, 6, 10]
Output: Max: 45, Min: 3

Select file or drag and drop

PNG, JPG, SVG

Preview