配置完Linux下的PHP环境后发现simplexml_load_string这个函数报错,看了很多解答发现并不适用,最后发现原来是PHP的扩展包没有装好。 sudo apt-get install php7.0-xml