PHP 7与PHP 5 —功能更改 [英] PHP 7 vs PHP 5 — changes in functions
问题描述
我目前正在使用运行PHP 7.1.1的本地服务器XAMPP为大学分配网站,但后来我发现大学服务器运行的是旧版本的PHP服务器(我相信PHP 5.x),并且所有我的PHP函数根本无法使用.
I'm currently building a website for my university assignment using local server XAMPP running PHP 7.1.1 but then I just found out that the university server is running an older PHP server version (I believe PHP 5.x) and all my PHP functions won't work at all.
所以我想知道:如果我想使其与大学服务器一起使用,是否只需要更改语法以匹配PHP 5.x?因为现在我不知道PHP 7.x和5.x有什么区别.
So I wonder: if I want to make it work with the university server, do I just need to change syntax to match PHP 5.x? Because now I have no idea what are the differences between PHP 7.x and 5.x.
有人可以帮我澄清一下吗?
Can anyone clarify this for me?
推荐答案
您可以从
You could start from the official documentation, if you want to migrate from 5.x to 7.x
这篇关于PHP 7与PHP 5 —功能更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!