TwistPHP Documentation

telephone

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

telephoneValidate a telephone number, this function if very universal phone number validator also allow for ext|ext.|,|; with upto 4 digit extension.
Optional spacing, brackets and dashes throughout

Parameters

Name Type Description
$mxdPhoneNumbermixedn/a

Return Values

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

Example

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

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