PHP 8.5.0 Alpha 4 available for testing

Voting

: min(six, four)?
(Example: nine)

The Note You're Voting On

me at diogoresende dot net
19 years ago
If you want to use the above function you should test for ':' character before '.'. Meaning, you should check if it's an ipv6 address before checking for ipv4.
Why? IPv6 allows this type of notation:

::127.0.0.1

If you check for '.' character you will think this is an ipv4 address and it will fail.

<< Back to user notes page

To Top