22 of 110 menu

The Minimum Array Element in PHP

To get the minimum value of an array in PHP, the min function is used. See the example:

<?php echo min([2, 1, 3]); ?>

Code execution result:

1
English
БеларускаяEspañolРусский
We use cookies for website operation, analytics, and personalization. Data processing is carried out in accordance with the Privacy Policy.
accept all customize decline