Minimum and maximum

Basic types / Numbers / Mathematical operations

<?php

$minValue = min(2, 1, 3);
//minValue is 1

$maxValue = max(2, 1, 3);
//maxValue is 3

echo $minValue, "\n";
echo $maxValue, "\n";