Home > Backend Development > PHP Problem > What language structures does php have?

What language structures does php have?

(*-*)浩
Release: 2023-02-27 06:52:01
Original
3279 people have browsed it

What language structures does php have?

#1. What is language structure?

php language keyword, part of the language syntax, cannot be defined by the user or added to the language library, it may or may not have variables and return values

2. The reason why the language structure executes quickly (Recommended learning: PHP video tutorial)

The function must first be parsed into a language structure by the php parser (Zend engine) , Therefore, the function has one more layer of parser than the language structure, and the speed is slower.

3. What are the language structures in PHP?

echo、print、die、isset、unset、include、require、array、list、empty
Copy after login

4. How to determine whether it is a language structure or a function?

function_exists或者php --rf
Copy after login

5. The difference between language structures and functions:

Language structures are faster than corresponding functions

Because they are language keywords , The error cannot be processed again

The language structure cannot be disabled in the configuration item php.ini, the function can

The language structure cannot be used as a callback function, the function can

The above is the detailed content of What language structures does php have?. 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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template