PHP字符串内调用函数的方式_PHP教程
程序员文章站
2024-04-04 16:19:53
...
"{$o0_0o{phpinfo()}}"
1
"{$我勒个去[phpinfo()]}"
1
"{$我勒个去[phpinfo()]}"
"${~-~phpinfo()}"
"${0e0+phpinfo()}"
What fuck?
$→_→${$←_←{pHPINfo(~@-@~-$$总之,我是好人)}}
我是好人;
?>
我简单整理了下规则:
可变变量
" ${phpinfo()} "
" ${@phpinfo()} "
" ${${phpinfo()} }"
" ${{0x00-0x20}phpinfo()} "
" ${{逻辑||运算}phpinfo()} "
数组索引
" {${合法变量名}[phpinfo()]} "
" {${合法变量名}{phpinfo()}} "
下一篇: PHP魔术方法总结