PHP echo inside echo

前端 未结 4 1605
攒了一身酷
攒了一身酷 2020-12-02 02:43

I\'m trying to call an HTML/PHP content that it\'s inside my database using:


When the row i

4条回答
  •  渐次进展
    2020-12-02 03:15

    evaluate code php in string using the function eval(): this post Execute PHP code in a string

    Welcome
    '; eval("?> $str

    http://codepad.org/ao2PPHN7

    also if your need the code buffer output in a string also you can using the ob_start() method:

    
    

    Hello

    ; ';

提交回复
热议问题