command for print array in php code example
Example 1: print array in php
print_r($array);
Example 2: php echo array
foreach($results as $result) {
echo $result . '<br>';
}
print_r($array);
foreach($results as $result) {
echo $result . '<br>';
}