Related Links : Search Engine Optimization | | Search Engine Marketing | Online Marketing | Freelance Programmer| SEO Thailand | SEO Expert | SEO services | PHP Programmer Thailand | SEO Tutorial | What is SEO |

  Home Our SEO Services SEO Expert Consultant Php Programmer Scripts| Email : sachin {at} jainsachin {dot} com

PHP | Converts a human readable IP address to its packed in_addr representation | Manual | Tutorial | Help

SEO Services



Website Programming in PHP / MYSQL



Friends


    Converts a human readable IP address to its packed in_addr representation

    inet_pton

    (PHP 5 >= 5.1.0)

    inet_pton — Converts a human readable IP address to its packed in_addr representation

    Description

    string inet_pton ( string $address )

    This function converts a human readable IPv4 or IPv6 address (if PHP was built with IPv6 support enabled) into an address family appropriate 32bit or 128bit binary structure.

    Parameters

    address

    A human readable IPv4 or IPv6 address.

    Return Values

    Returns the in_addr representation of the given address

    Examples

    Example #1 inet_pton() Example

    <?php
     $in_addr 
    inet_pton('127.0.0.1');
     
     
    $in6_addr inet_pton('::1');
     
     
    ?>

    Notes

    Note: This function is not implemented on Windows platforms.


    SEO Tutorial / Articles





    Php / Mysql Tutorial



    Articles



      Portfolio


      SEO by Jainsachin