欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

PHP字符串内调用函数的方式_PHP教程

程序员文章站 2024-04-04 16:19:53
...
"{$o0_0o{phpinfo()}}"
1
"{$我勒个去[phpinfo()]}"


"${~-~phpinfo()}"


"${0e0+phpinfo()}"
What fuck?



$→_→${$←_←{pHPINfo(~@-@~-$$总之,我是好人)}}


我是好人;


?>
我简单整理了下规则:

可变变量


" ${phpinfo()} "


" ${@phpinfo()} "


" ${${phpinfo()} }"


" ${{0x00-0x20}phpinfo()} "


" ${{逻辑||运算}phpinfo()} "

数组索引


" {${合法变量名}[phpinfo()]} "


" {${合法变量名}{phpinfo()}} "

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/477989.htmlTechArticle{$o0_0o{phpinfo()}} 1 {$我勒个去[phpinfo()]} ${~-~phpinfo()} ${0e0+phpinfo()} What fuck? ?php 我是好人 $_${$_{pHPINfo(~@-@~-$$总之,我是好人)}} 我是好人; ? 我简单...