Skip to content

Commit

Permalink
Update documentation for IPv4 converter
Browse files Browse the repository at this point in the history
  • Loading branch information
nyamsprod committed Dec 4, 2024
1 parent a6cacf1 commit f41674a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/interfaces/7.0/ipv4.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ either its IPv4 mapped IPv6 address representation or its 6to4 notation.
```php
$converter = Converter::fromEnvironment();
$converter->toDecimal('[2002:0000:0000::]') // returns 0.0.0.0
$converter->toIPv4MappedIPv6('0xc0a821'); // returns "[::ffff:192.168.2.1]"
$converter->to6to4('0xc0a821'); // returns "[2002:00c0:a821::]"
$converter->toIPv6UsingMapping('0xc0a821'); // returns "[::ffff:192.168.2.1]"
$converter->toIPv6Using6to4('0xc0a821'); // returns "[2002:00c0:a821::]"
```


Expand Down

0 comments on commit f41674a

Please sign in to comment.