Hướng dẫn dùng inet_ntop trong PHP
❮ PHP Network Reference ExampleConvert a packed address into a readable format: $addr = chr(127) . chr(0) . chr(1) . chr(1); Try it Yourself » Definition and UsageThe inet_ntop() function converts a 32bit IPv4 or 128bit IPv6 address into a readable format. SyntaxParameter Values
Technical Details
❮ PHP Network Reference (PHP 5 >= 5.1.0, PHP 7, PHP 8) inet_ntop — Converts a packed internet address to a human readable representation Descriptioninet_ntop(string This function converts a 32bit IPv4, or 128bit IPv6 address (if PHP was built with IPv6 support enabled) into an address family appropriate string representation. Parametersip A 32bit IPv4, or 128bit IPv6 address. Return Values Returns a string representation of the address or ExamplesExample #1 inet_ntop() Example
See Also
ryansun81 at gmail dot com ¶ 12 years ago
marcus at synchromedia dot co dot uk ¶ 7 years ago
MagicalTux at FF dot st ¶ 17 years ago
PandoraBox2007 at gmail dot com ¶ 10 years ago
|