TwistPHP Documentation

integer

File path: dist/twist/Core/Utilities/Validate.utility.php
Namespace: Twist\Core\Utilities
Extends: Base

integerValidate an integer, optionally you can pass in a min and max range for further validation

Parameters

Name Type Description
$intIntegerintegern/a
[$intRangeMin = null]integern/a
[$intRangeMax = null]integern/a

Return Values

void — No return information has been documented for this function.

Example

<?php
//Set the variables for the example
$intInteger 124;
$intRangeMin null;
$intRangeMax null;

//Call the function integer with the example vars
Twist::Validate() -> integer($intInteger$intRangeMin$intRangeMax);