Created
October 30, 2023 08:19
-
-
Save xenioushk/2341f983e761b4ae6a403edbf50e33bd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* | |
| * Get Max and Min Value | |
| * From A PHP Array | |
| * https://youtube.com/bluewindlab | |
| */ | |
| $items = [10, 2, 31, 14, 5]; | |
| $maxVal = max($items); | |
| echo "Max Value: " . $maxVal; | |
| echo "<br>"; | |
| $minVal = min($items); | |
| echo "Min Value: " . $minVal; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment