Comments on: How to Validate IPv4 Address in PHP https://w3lessons.info/validate-ipv4-address-in-php Tutorials on PHP, jQuery & Amazon Web Services Tue, 26 Mar 2019 03:26:10 +0000 hourly 1 https://wordpress.org/?v=6.6.2 By: rumus keliling lingkaran matematika https://w3lessons.info/validate-ipv4-address-in-php#comment-3144 Sun, 24 Mar 2019 10:31:45 +0000 http://w3lessons.info/?p=1308#comment-3144 Thanks for finally writing about >Validate IPv4 Address in PHP – W3lessons Programming
Blog <Loved it!

]]>
By: gafitescudaniel https://w3lessons.info/validate-ipv4-address-in-php#comment-453 Sun, 22 Dec 2013 19:11:00 +0000 http://w3lessons.info/?p=1308#comment-453 or

$ip_a = ‘127.0.0.1’;
$ip_b = ‘42.42’;

if (filter_var($ip_a, FILTER_VALIDATE_IP)) {
echo “This (ip_a) IP address is considered valid.”;
}
if (filter_var($ip_b, FILTER_VALIDATE_IP)) {
echo “This (ip_b) IP address is considered valid.”;
}

]]>