Opossite function in example (bug #32520)

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@183291 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Jakub Vrana 2005-03-31 19:19:13 +00:00
parent b8e106709c
commit c9e79b433c

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.2 $ -->
<!-- $Revision: 1.3 $ -->
<refentry id="function.inet-ntop">
<refnamediv>
<refname>inet_ntop</refname>
@ -24,13 +24,13 @@
<![CDATA[
<?php
$packed = chr(127) . chr(0) . chr(0) . chr(1);
$expanded = inet_pton($packed);
$expanded = inet_ntop($packed);
/* Outputs: 127.0.0.1 */
echo $expanded;
$packed = str_repeat(chr(0), 15) . chr(1);
$expanded = inet_pton($packed);
$expanded = inet_ntop($packed);
/* Outputs: ::1 */
echo $expanded;