TwistPHP Documentation

checkIP

File path: dist/twist/Core/Models/Validate/Validator.model.php
Namespace: Twist\Core\Models\Validate
Extends:

checkIP

Parameters

Name Type Description
$strKeystringn/a
[$blValidateIPV6 = false]booleann/a
[$blAllowBlank = false]booleann/a
[$blRequired = true]booleann/a
[$blTrim = true]booleann/a

Return Values

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

Example

<?php
//Set the variables for the example
$strKey 'foo';
$blValidateIPV6 false;
$blAllowBlank false;
$blRequired true;
$blTrim true;

//Call the function checkIP with the example vars
$resValidator = new \Twist\Core\Models\Validate\Validator();
$resValidator -> checkIP($strKey$blValidateIPV6$blAllowBlank$blRequired$blTrim);