I have an array and print_r won't display the raw text, how can I print all the values in an array (e.g. pie)
So many ways to do it...
foreach ($array as $item) {
echo $item;
}
echo join(', ', $array);
array_walk($array, create_function('$a', 'echo $a;'));
<?php
$len=count($pie);
for ($i=0;$i<$len;$i++)
echo $pie[$i];
?>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With