min function in php 1

min function in php

"); # output: 2
echo(min(22,14,68,18,15) . "
"); # output: 14 echo(min(array(4,6,8,10)) . "
"); # output: 4 echo(min(array(44,16,81,12))); # output: 12 ?>

Here is what the above code is Doing:
1. The first echo statement is passing 5 arguments to the min() function.
2. The second echo statement is passing 5 arguments to the min() function.
3. The third echo statement is passing 1 argument to the min() function.
4. The fourth echo statement is passing 1 argument to the min() function.

Similar Posts