Problem:
You want to find out the maximum value from an array.
Solution:
max() function can help you to the highest value of an Array. See the following example-
<?php $numbers = array(77, 455, 1000); echo max($numbers); ?>
Output:
1000
Teach Yourself Web Development and Web Designing Step by Step With Easy Explanation
You want to find out the maximum value from an array.
max() function can help you to the highest value of an Array. See the following example-
<?php $numbers = array(77, 455, 1000); echo max($numbers); ?>
Output:
1000