inet_pton

PHP 5 >= 5.1.0, PHP 7, PHP 8
inet_pton - Converts a human readable IP address to its packed in_addr representation
Manual
Code Examples

Example #1 inet_pton Example

PHP Version: