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

后端 未结 5 1729
自闭症患者
自闭症患者 2021-02-13 00:22

The question is the tag

 

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

echo (\"

\");

.... .

相关标签:
5条回答
  • 2021-02-13 00:53

    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:01

    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)
  • 2021-02-13 01:03

    The PHP function echo() prints out its input to the web server response.

    echo("Hello World!");
    

    prints out Hello World! to the web server response.

    echo("<prev>");
    

    prints out the tag to the web server response.

    echo do not require valid HTML tags. You can use PHP to print XML, images, excel, HTML and so on.

    <prev> is not a HTML tag. Is is a valid XML tag, but since I don't know what page you are working in, i cannot tell you what it is. Maybe it is the root tag of a XML page, or a miswritten <pre> tag.

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

    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:09

    It is nor php nor html it sounds like specific xml tag.

    0 讨论(0)
提交回复
热议问题