How to display special characters in PHP

前端 未结 9 1335
野的像风
野的像风 2020-11-30 12:24

I\'ve seen this asked several times, but not with a good resolution. I have the following string:

$string = \"

Résumé

\";

9条回答
  •  执念已碎
    2020-11-30 13:02

    You can have a mix of PHP and HTML in your PHP files... just do something like this...

    
    
    
    
    
    

    That should output Résumé just how you want it to.

    If you don't have short tags enabled, replace the with

提交回复
热议问题