Is php any good?

(*-*)浩
Release: 2023-02-26 21:38:01
Original
2704 people have browsed it

Students who want to learn the PHP language will definitely have this question: Is the PHP programming language good? What are the advantages of PHP language? What are its disadvantages? Today I will summarize the advantages and disadvantages of PHP language for you. Hope it can be of some help to you.

Is php any good?

1. Advantages

1. Cross-platform, superior performance, strong performance when combined with Linux/Unix, not Windows 45 %, and it is very economical to combine with many free platforms, such as LAMP (Linux/Apache/Mysql/PHP) or FAMP (FreeBSD/Apache/Mysql/PHP). If the data application is large enough, you can consider changing to PostgreSQL or Oracle. Support N kinds of databases. (N>=10) (Recommended learning:PHP video tutorial)

2. The syntax is simple, if you have learned C and Perl, it is easy to get started, and it is partially similar to ASP. There are mature development tools, such as NuPHPed, or ZendStudio, etc., and you can use Eclipse and so on under the Linux platform.

3. Currently, mainstream technologies are supported, such as WebService, Ajax, XML, etc., which are sufficient for application.

4. There is relatively complete support, such as using ADODB or PEAR::DB as the database abstraction layer, using Smarty or smarttemplate as the template layer. If it is PHP5.1, you can also use PDO (PHPDataObject). Access the database.

5. There are many mature frameworks, such as the framework that supports MVC: PHPMVC, the framework that supports event-driven events like ASP.net: Prado, the framework that supports rapid development like RubyOnRails: Cake, etc., which are enough to satisfy your application needs.

6.PHP5 already has a mature object-oriented system and can adapt to basic object-oriented requirements. Suitable for developing large-scale projects.

7. There is a mature community to support PHP development.

8. Currently, many large-scale applications use PHP, such as Taobao, Yahoo, 163, Sina and other large portals. Many of them choose PHP as their development language, so large portals can choose it. I think it's enough for your use.

9. There are many open source frameworks or open source systems that can be used. For example, the well-known open source frameworks include ZendFramework, CakePHP, CodeIgniter, symfony, etc., open source forums include Discuz!, PHPwind, etc., open source blog WordPress, open source Online store systems such as Ecshop, ShopEx, etc., and open source SNS systems such as UCHome, ThinkSNS, etc.

10. Low cost of use (linuxapachemysqlPHP kernel)

2. Disadvantages

1. The support for multi-threading is not very good. Most of the time we It can only be achieved through simple simulation.

2. The syntax is not very strict. For example, variables can be used without being defined. In c, java, and c, variables must be defined before they can be used.

3.PHP’s interpretation and operation mechanism. This operating mechanism enables all related resources to be recycled after each PHP page is interpreted and executed. In other words, PHP has no way to make an object resident in memory at the language level. In PHP, all variables are page-level. Whether they are global variables or static members of the class, they will be cleared after the page is executed.

Take JSP as an example. In JSP, the scope of JavaBean has four valid values: Page, Application, Session, and Request, which correspond to the four lifetimes of page, program, session, and request respectively. But in PHP, there is only one lifetime of Page.

So, overall,PHP language still has great advantages over other programming languages, and it is relatively simple to develop. If you want to work in the Internet industry, PHP programming is your first choice!

The above is the detailed content of Is php any good?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
php
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!