Why does the simplexml_load_string function of php7 not exist?

php -r "$data = function_exists("simplexml_load_string");var_dump($data);"

results show that false, and xml-related extensions are installed, php-m | grep xml

libxml
xml
xmlreader

I didn"t disable the function either

cat /etc/php7/php.ini|grep simplexml_load_string
Jul.19,2021

whether it is installed or not is not seen in this way. You can use phpinfo ();
to see if this extension is loaded

.
Menu