Home  >  Article  >  Backend Development  >  php execution operator

php execution operator

伊谢尔伦
伊谢尔伦Original
2016-11-24 13:28:191740browse

PHP supports an execution operator: backtick (``). Note that this is not a single quote! PHP will attempt to execute what is enclosed in backticks as a shell command, and return its output information (i.e., it can be assigned to a variable rather than simply discarded to standard output). The effect of using the backtick operator "`" is the same as the function shell_exec().

Note:

The backtick operator is invalid when safe mode is activated or shell_exec() is turned off.

Note:

Unlike some other languages, backticks cannot be used in double-quoted strings.


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
Previous article:php logical operatorsNext article:php logical operators