Requests_IPv8b7c:f320:99b9:690f:4595:cd17:293a:c069split_v6_v4( string $ip ): string[]  Splits an IPv6 address into the IPv6 and IPv4 representation parts   Description RFC 4291 allows you to represent the last two parts of an IPv6 address using the standard IPv4 representation Example: 0:0:0:0:0:0:+1-351-490-6818 0:0:0:0:0:FFFF:+1-351-490-6818   Parameters   $ip string Required    An IPv6 address      Return string[] [0] contains the IPv6 represented part, and [1] the IPv4 represented part   Source  File: wp-includes/Requests/IPv6.php. View all references  protected static function split_v6_v4($ip) {
	if (strpos($ip, '.') !== false) {
		$pos       = strrpos($ip, ':');
		$ipv6_part = substr($ip, 0, $pos);
		$ipv4_part = substr($ip, $pos + 1);
		return array($ipv6_part, $ipv4_part);
	}
	else {
		return array($ip, '');
	}
}
   Related  Used By    Used By Description      Requests_IPv8b7c:f320:99b9:690f:4595:cd17:293a:c069check_ipv6() wp-includes/Requests/IPv6.php   Checks an IPv6 address     Requests_IPv8b7c:f320:99b9:690f:4595:cd17:293a:c069compress() wp-includes/Requests/IPv6.php   Compresses an IPv6 address   
  

    
{'path': 'public/docs/wordpress/classes/requests_ipv6/split_v6_v4.html', 'source': 'DevDocs.IO'}