PHP’s parse_url was not compliant with RFC 3986 (generic, permissive URIs) or WHATWG URL (browser-style URLs), leading to inconsistent behavior, interoperability problems with tools like cURL, and subtle security issues such as parsing confusion.| Amit Merchant
A blog on PHP, JavaScript, and more| Amit Merchant
Today, if you want to get the first or last element of an array in PHP effectively, you can use the reset() and end() functions respectively.| Amit Merchant