Answers for "print_r php array"

PHP
3

print array on php

foreach($results['data'] as $result) {
    echo $result['type'], '<br>';
}
Posted by: Guest on July-27-2020
0

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