File path: dist/twist/Core/Utilities/Validate.utility.php
Namespace: Twist\Core\Utilities
Extends: Base
ip
— Validate the format of a IP address, can validate both IPv4 and IPv6 addresses
Name | Description |
---|---|
$mxdIPAddress | n/a |
[$blValidateIPV6 = false] | n/a |
void — No return information has been documented for this function.
<?php
//Set the variables for the example
$mxdIPAddress = 'foo-123';
$blValidateIPV6 = false;
//Call the function ip with the example vars
Twist::Validate() -> ip($mxdIPAddress, $blValidateIPV6);