PHP Echo a large block of text

后端 未结 11 1073
南方客
南方客 2021-01-30 21:00

Im new to PHP and I can\'t figure out what the rules are for using the echo function. For example, if I need to echo a large block of css/js, do I need to add echo to each line

11条回答
  •  刺人心
    刺人心 (楼主)
    2021-01-30 21:27

    Man, PHP is not perl!
    PHP can just escape from HTML :) http://www.php.net/manual/en/language.basic-syntax.phpmode.php

    if (is_single()) {
    //now we just close PHP tag
    ?>
     
    
    
                                     
                  
提交回复
热议问题