php - convert single quoted string to double quoted

前端 未结 3 1808
谎友^
谎友^ 2021-01-20 07:30

Been searching here and google for over an hour, can\'t seem to find the answer to this.

I have a string returned from a database query which contains variables, how

3条回答
  •  庸人自扰
    2021-01-20 08:15

    You could do something like this:

    
    

    However, I strongly DO NOT recommended evaluating any code from a database. Anything out of your control is a security risk.

提交回复
热议问题