mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
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:
parent
b8e106709c
commit
c9e79b433c
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue