Func misc eval:修订历史

本页内容
上一节: Func_misc_die 下一节: Func_misc_exit

差异选择:选中要对比的版本的单选按钮,按Enter键或下方的按钮。
说明:(当前)=与最后版本之间的差异,(之前)=与上一版本之间的差异,=小编辑。

    2022年8月17日 (星期三)

    • 当前之前 22:262022年8月17日 (三) 22:26Neo 讨论 贡献 1,387字节 +1,387 创建页面,内容为“{{DISPLAYTITLE:eval()}}7 = PHP eval() 函数 = PHP Misc 参考手册 把字符串当成 PHP 代码来计算: <sample title="" desc="" lang="php" hererun="1">example_start <?php $string = "beautiful"; $time = "winter"; $str = 'This is a $string $time morning!'; echo $str. PHP_EOL; eval("\$str = \"$str\";"); echo $str; ?> example_end</sample> 以上代码执行输出结果为: <sample title="" desc="" lang="php…”
上一节: Func_misc_die 下一节: Func_misc_exit