Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

What language is PHP?


May 31, 2021 Article blog



I've seen a joke like this:

A woman: You can make everyone on this forum quarrel, I'll go with you tonight.

A software engineer: PHP is the best language! A forum is really fryer, all kinds of quarrels...

A woman: Served you, let's go, you can do anything you want.

A software engineer: Not today, I must convince them that PHP must be the best language...

 What language is PHP?1

In fact, PHP is the best language This terrier comes not from elsewhere, but from the official PHP document of July 2001!

PHP is the best language for web programming, but what about other languages?

PHP is the best language for network programming, but what about other languages?

--PHP and other languages

 What language is PHP?2

So what kind of magic does PHP have to make it so confident that countless people flock to it?

PHP (PHP: Hypertext Preprocessor, "Hypertext Preprocessor") is a universal open source, simple, object-oriented, explanatory, robust, secure, very high-performance, architecture-independent, portable, dynamic scripting language.

PhP syntax combines C, Java, Perll, and its own syntax to make most PHP developers have to have a reference manual at hand to write code.

 What language is PHP?3

But it still attracts a large number of developers, the most important reason is undoubtedly: ultra-low threshold, a large user base. A nd other languages are unique things, can you? Memory card...

 What language is PHP?4

By all accounts, PHP can execute dynamic web pages faster than CGI or Perl. D ynamic pages made with PHP are embedded in HTML documents to execute, much more efficiently than CGI that fully generates HTML tags, PHP performs on the server side compared to JavaScript, a scripting language that is also embedded in HTML documents, and the PHP execution engine resides PHP programs that users frequently visit in memory. O ther users don't need to recompile the program at once, just execute the code in memory directly, which is one of the embodiments of PHP's efficiency. PHP is very powerful, all CGI or JavaScript functional PHP can be implemented, and supports almost all popular databases and operating systems.

PHP drives more than 200 million websites worldwide, and more than 81.7% of public websites worldwide use PHP on the server side. PHP's commonly used data structures are built-in, easy to use, not complicated at all, and flexible in expression.


Whitewashing:

PHP has easy-to-understand syntax, no strange black magic, can be process-oriented and object-oriented at the same time, after installation of a variety of extensions, including but not limited to MySQL, JSON, mbstr, etc., extremely convenient. A web page with HTML and PHP implementations must not be handy, and even the latest version of PHP has built-in small web servers, even apache and nginx do not need to go on, one minute to set up a blog forum to ask you not afraid, foreign Ci, laravel, kohana, zf and other frameworks emerge endlessly, domestic tp community stick, language creators actively into optimization, language bugs around the world programmers with you to fix. The most important thing is that large and small companies use, look for a job do not worry ah!


Good lesson recommendations:

PHP Quick Start to Development Employment, PHP Getting Started: Ten Days to Learn PHP (2020 Edition).