Answers for "return to line php print_r"

PHP
0

php print array new line

//Tell the browser it's not an HTML document, but a text, by placing the following code before any output is sent
header('Content-type: text/plain');

echo "<pre>".print_r($array)."</pre>";
Posted by: Guest on August-11-2021
2

php print_r

<pre>
<?php
$a = array ('a' => 'apple', 'b' => 'banana', 'c' => array ('x', 'y', 'z'));
print_r ($a);
?>
</pre>
Posted by: Guest on November-21-2020

Browse Popular Code Answers by Language