TwistPHP Documentation

regx

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

regxValidate some data using an Regular Expression

Parameters

Name Type Description
$mxdDatamixedn/a
$strRegXstringn/a

Return Values

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

Example

<?php
//Set the variables for the example
$mxdData 'foo-123';
$strRegX 'foo';

//Call the function regx with the example vars
Twist::Validate() -> regx($mxdData$strRegX);