PHP和PHP5之间的区别 [英] Difference between PHP and PHP5

查看:74
本文介绍了PHP和PHP5之间的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想研究与OOP相关的PHP,主要用于mashup和一些开发.我开始使用PHP和MySQL.

I want to study OOP-related PHP, mainly for mashups and some development. I started with PHP and MySQL.

PHP和PHP5之间的主要关系或区别是什么?像PHP用于Web开发和其他PHP用于软件开发有什么区别吗?

What's the main relation or difference between PHP and PHP5. Is there anything different like PHP is for web development and the other PHP is for software development?

请引导我阅读一些有关PHP OOP示例和概念的书...

Please guide me with some books with PHP OOP examples and concepts...

推荐答案

注意: 我假设从PHP到PHP5"的意思是从PHP4到PHP5. PHP5与PHP没有不同的语言,只是一个不同的版本.

这是PHP4和PHP5之间的主要区别.

Here is the main differences between PHP4 and PHP5.

http://www.php.net/manual/en/migration5.php

特定的OOP更改显示在对象模型中

The specific OOP changes are featured in the Object Model

http://www.php.net/manual/en/migration5 .oop.php

该页面所指向的地方之一将为您提供有关PHP在OOP中的工作原理的基础:类和对象参考页面:

One of the places that page points that will give you the basics to how OOP works in PHP would be the Classes and Object reference page:

http://www.php.net/manual/en/language .oop5.php

如果您需要一些有关如何在PHP中使用OOP的特定示例,则可能需要查看我在Web开发设置中可能使用的一些基本类的答案:

If you want some specific examples of how OOP is used in PHP, you might want to look at my answer on some basic classes you might use in a web development setting:

https://stackoverflow.com/questions/2035449/why -is-oop-hard-for-me/2035482#2035482

要学习PHP,您可以在StackOverflow上的PHP和OOP上进行搜索,并且前几个结果为您提供了这样做的资源:

To learn PHP, you can do a search on PHP and OOP on StackOverflow, and the first few results give you resources to do so:

https://stackoverflow.com/search?q=php+oop

如果要跳过单击链接,只需转到 http://php.net ,我保证几乎所有的人都指向那里. PHP提供了最好的文档之一,并且非常易于使用,并且您会非常非常频繁地返回它.

If you want to skip clicking the link, you can just go to http://php.net, cause I guarentee that almost all of them point there. PHP has one of the best documentations out there, and it is extremely easy to use, and you will return to it very, very often.

作为记录,第一个结果讨论了如何在php中学习面向对象的编程.

For the record, the first result talks about how to learn object-oriented programming in php.

这篇关于PHP和PHP5之间的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆