There are lots of posts here and elsewhere about how to handle IP4 and IP6 addresses in PHP.
I want to write code which will normalise all IP addresses, regardless of their representation, to IP6 format.
I can do that by piecing together various bits of advice and doing some string hacking, but has best practice moved on from that?
Are there built-in functions in modern PHP which will do this correctly for all cases, without any conditional logic in my application code?