What are the backticks `` called?

前端 未结 3 1009
独厮守ぢ
独厮守ぢ 2020-12-10 00:26

What are the backtick operators (``) called in the context of evaluating their content?

3条回答
  •  既然无缘
    2020-12-10 01:26

    Backticks (``) is an Execution Operator. PHP will attempt to execute the contents of the backticks as a shell command; the output will be returned (i.e., it won't simply be dumped to output; it can be assigned to a variable). Use of the backtick operator is identical to shell_exec().

    Eg.

    $output
    "; ?>

    For more info refer: http://php.net/manual/en/language.operators.execution.php

提交回复
热议问题