Skip to main content

int_range()

public static function int_range( $value, $min, $max )

Forces an integer into a range of integers. Returns the value or the minimum if it's outside the range.

Source: common.php:7088

Parameters

NameTypeDefaultDescription
$value
$min
$max

Returns

  • int