合规国际互联网加速 OSASE为企业客户提供高速稳定SD-WAN国际加速解决方案。 广告
[TOC] ## 把字符串 $code 作为 PHP 代码执行 ~~~ mixed eval (string $code) ~~~ ## 检查一个断言是否为 FALSE。(把字符串 assertion 作为 PHP代码执行) ~~~ bool assert( mixed $assertion [,string $description ]) ~~~ ## /e 修正符使 preg\_ replace()将 replacement 参数当作 PHP 代码 ~~~ mixed preg\_replace( mixed $pattern, mixed $replacement, mixed $subject [,int $limit=-1 [,int &$count ]]) preg_replace(‘/hello/e’,‘phpinfo();‘,’hello world’); ~~~ ## 文件包含函数 ~~~ require include require_once include_once ~~~ 分为远程文件包含和本地文件包含。 ## 不输出结果,返回结果最后一行 ~~~ exec ~~~ ## 会输出结果,返回true/false ~~~ system ~~~ ## 有输出结果,无返回 ~~~ passthru ~~~ ## 不输出结果,返回执行结果 ~~~ shell_exec/反撇号 ` ~~~