About parse_url.

Native is macOS, and centos, is php7.2.4.
execute php-r "print_r (parse_url ("I"));" ) gets different results.
macOS is

centos

execute php-I | grep char to get the same result.

default_charset = > UTF-8 = > UTF-8
mbstring.substitute_character = > no value = > no value
session.hash_bits_per_character = > 5 = > 5

what"s the problem?

Php
Mar.03,2021

coding problem, unified as: utf-8


. This is the function used in the URL library for URL parsing. Theoretically, the Operand should be a URL, and the main function of this function is to separate the various parts of the URL instead of transcoding. Please consider rawurlencode/urlencode

for coding.
Menu