Answers for "how to array print on by on in php"

PHP
0

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

Browse Popular Code Answers by Language