Home ›
Get the lesser of two or more values with PHPGet the lesser of two or more values with PHP
Submitted by Benjamin Melançon on May 3, 2009 - 5:06pm
Searched words:
php function to get the lesser of two values - min?
I love it when PHP has the logically named function. To get the lowest of two or more variables, min($var1, $var2)
Resolution
More like this
- Unset certain values in an unkeyed PHP array
- Get rid of extra spaces using PHP's preg_replace
- Get the directory name from a file path string in PHP
- Calculate the sum of an entire result set of values with a single SQL query
- Provide an 'Add New' link on a simple view for easily creating more content to list


Comments
Post new comment