r,<pre>标记不起作用

这个问题在这里已经有了答案:

  • PHP解析/语法错误; 以及如何解决它们? 13个答案

  • 根据提供的图像,代码将以这种方式显示

    echo "<pre>";
    print_r($levels);
    echo "</pre>";
    

    检查您的代码是否有语法错误


    Try this code . i will work.
    <?php
    
        $levels = array(
            1 => array( 'name' => 'level 1', 'desc' => 'This is the first level' ),
            2 => array('name' => 'level 2', 'desc' => 'youve made it to level 2!'),
            3 => array('name' => 'level 3', 'desc' => 'The last level')
          );
          echo"<pre>";
          print_r($levels);
          echo "</pre>";
          ?>
    
    链接地址: http://www.djcxy.com/p/59449.html

    上一篇: r with <pre> tag not working

    下一篇: PHP EMPTY token