Home  >  Article  >  Backend Development  >  Does php need c language support?

Does php need c language support?

angryTom
angryTomOriginal
2019-10-28 10:24:443224browse

Does php need c language support?

Does php need c language support?

php needs c language support, because the php interpreter is It is written in C language, and the C extension is needed when the PHP program has high performance requirements.

PHP is a scripting language executed on the server side. It is similar to C language and is a commonly used website programming language. It drives more than 200 million websites around the world, and more than 81.7% of the world's public websites use PHP on the server side. PHP's commonly used data structures are all built-in. It is convenient and simple to use, not complicated at all, and its expression ability is quite flexible.

1. PHP draws heavily on the syntax of C, PERL, and JAVA. There must be a close connection between them.

2. PHP removes the difficult-to-grasp operations on pointers in the C language, making it PHP is easier to learn and master than C

3. There are some differences between PHP and C language. To some extent, PHP may be more flexible than C language. For example, in C language, variables must be defined before they can be used. Variables in PHP do not need to be defined in advance and can be used directly. The type of the variable is automatically generated when assigning a value.

4. Learning PHP does not require a C language foundation. It is easier to learn than C. However, if you have a C foundation, it will not be so strenuous to learn.

Recommended learning: PHP Video tutorial

The above is the detailed content of Does php need c language support?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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