Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Validate IP address in PHP

DZone's Guide to

Validate IP address in PHP

·
Free Resource

This code demonstrates a simple way to validate IP address using preg_match() PHP function. This is a very simple code, that allows you to perform this task quickly with a minimum lines of code.

 
Topics:

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}