What does <? php echo (“
”); … echo(“
”); ?> mean?

后端 未结 3 1988
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-13 00:28

The question is the tag

 

I\'ve seen one script I am working on, uses it:

echo (\"

\");

.... .

相关标签:
3条回答
  • 2021-02-13 00:50

    echo (""); is a php code, and <prev> tries to be HTML, but isn't.

    As @pekka said, its probably supposed to be <pre>

    0 讨论(0)
  • 2021-02-13 01:09

    The <prev> tag doesn't exist, but it's probably the <pre> HTML tag to put around debug output, to improve readability. It's not a secret PHP hack. :)

    0 讨论(0)
  • 2021-02-13 01:12

    I think you're talking about <pre></pre>. element is displayed in a fixed-width font, and it preserves both spaces and line breaks.

    try printing an array with a **<pre>** and whitout **<pre>**

    $arr = array(1, 2, 3);
    
    echo '<pre>';
    print_r($arr);
    echo '</pre>';
    
    print_r($arr); 
    
    0 讨论(0)
提交回复
热议问题