Answers for "print all array elements php"

PHP
2

print array items in php

<?php $data = array('a'=>'apple','b'=>'banana','c'=>'orange');?>
<pre><?php print_r($data); ?></pre>
Posted by: Guest on July-15-2021
3

print array on php

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

Code answers related to "print all array elements php"

Browse Popular Code Answers by Language