r with <pre> tag not working
This question already has an answer here:
Based on the image provided, code will look this way
echo "<pre>";
print_r($levels);
echo "</pre>";
Check your code for syntax errors
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/59450.html
上一篇: 在PHP中,我可以在变量中使用put echo吗?
下一篇: r,<pre>标记不起作用