TwistPHP Documentation

checkComparison

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

checkComparison

Parameters

Name Type Description
$strKeystringn/a
$strKey2stringn/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';
$strKey2 'foo';
$blAllowBlank false;
$blRequired true;
$blTrim true;

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