PHP: Work with a large string with quotes

后端 未结 3 2037
时光说笑
时光说笑 2021-01-23 17:31

Suppose I have a large string of HTML code. It has both double quotes and single quotes. How can I work with such a string? I want to assign it to a php var but the

3条回答
  •  不要未来只要你来
    2021-01-23 18:32

     $var = file_get_contents('file.with.your.long.and.windy.html');
    

    would be apparently the only sane way. PHP files are for the code.

提交回复
热议问题