Symfony\Component\HttpFoundation\IpUtils::checkIp6
Validates an IPv6 address.
- Author: David Soria Parra <dsp at php dot net>
Signature
public function checkIp6(string
$requestIp,
string
$ip )
Parameters
$requestIp
— string$ip
— string
Returns
- boolean
- Whether the IP is valid
Errors/Exceptions
-
RuntimeException
- When IPV6 support is not enabled