Skip to content

Schools of Web – Teach Yourself Web Development and Web Designing Step by Step With Easy Explanation

Teach Yourself Web Development and Web Designing Step by Step With Easy Explanation

  • Home
  • About Us
  • Contact Us
  • Earnings Disclaimer
  • Privacy Policy
Search
Search Close
  • Home
  • PHP How-to
  • How to Find the Minimum/smallest/lowest Value of an Array in PHP?

How to Find the Minimum/smallest/lowest Value of an Array in PHP?

May 19, 2014May 19, 2014 Neil FinPHP How-tophp min() function

New here? Like SchoolsOfWeb on Facebook to stay up to date with new posts.

Problem:

You want to find out the minimum value from an array.

Solution:

min() function can help you to the minimum value of an Array. See the following example-

<?php
$numbers = array(77, 455, 1000);
echo min($numbers);
?>

[wpdm_file id=106]

Output:
77

Post navigation

Previous Previous post: How to Pass Form Input Array to a PHP Page?
Next Next post: How to Count Occurrence of an Array Element in PHP?

Courses

  • PHP for Beginners
  • CSS for Beginners
  • HTML for Beginners

How-to Tutorials

  • PHP How-to
  • HTML How-to

About this site

Schools of Web is run by web developer and designer to help others learn it easily.

Like us: Never miss a post

Copyright © All rights reserved.
Education Soul by WEN Themes