TwistPHP Documentation


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

domainValidate Domain Names, allows all of the following combinations
- localhost
- a.b
The first character and last character of any part (split by .) cannot be a - or _ and the last part (.com or can only contain a-z


Name Type Description

Return Values

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


//Set the variables for the example
$strDomain 'foo';

//Call the function domain with the example vars
Twist::Validate() -> domain($strDomain);