Skip to content

Commit

Permalink
Fix typo in example code (#86)
Browse files Browse the repository at this point in the history
  • Loading branch information
cowsay1 authored Sep 11, 2023
1 parent 6fec056 commit eb3656d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -341,10 +341,10 @@ echo (string) $ipv6;
echo $ipv6->toIPv4();

// IPv4-mapped notation
$ipv6 = $ipv4->toIPv6IPv4Mapped();
$ipv6_6to4 = $ipv4->toIPv6IPv4Mapped();

// This will print ::ffff:1.2.3.4
echo (string) $ipv6;
echo (string) $ipv6_6to4;

// This will print 1.2.3.4
echo $ipv6_6to4->toIPv4();
Expand Down

0 comments on commit eb3656d

Please sign in to comment.