TwistPHP Documentation

ip

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

ipValidate the format of a IP address, can validate both IPv4 and IPv6 addresses

Parameters

Name Type Description
$mxdIPAddressmixedn/a
[$blValidateIPV6 = false]booleann/a

Return Values

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

Example

<?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);