You are writing a PHP script and you need to find the highest value in a list of numbers. How would you do this?

  • max($numbers)
  • min($numbers)
  • sort($numbers)
  • array_sum($numbers)
To find the highest value in a list of numbers in PHP, you can use the max() function. The max() function accepts an array of numbers or multiple arguments and returns the maximum value among them. This function is useful when you need to determine the highest value from a set of numbers. Learn more: https://www.php.net/manual/en/function.max.php
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *