PuStudy.Com Start write and Run your Web Code Online Work, PuStudy.Com Provide Online Web Editor, Every Language Code Work in this Editor, Editor Work Like as - Html, Php, Css, Bootstrap, Asp, jQuery Etc.
<?php // Sample IP address $ip = "172.16.254.1"; // Validate sample IP address if(filter_var($ip, FILTER_VALIDATE_IP)){ echo "The $ip is a valid IP address"; } else { echo "The $ip is not a valid IP address"; } ?>