Hey guys, I have this forloop reading an array:
$data = $_POST['data'];
foreach ($data as $array) {
foreach ($array as $key=>$prices) {
$message .= ''.$prices.' ';
}
$message .= '<br>';
}
It currently displays like this:
item1 item2 item3 item4
item1 item2 item3 item4
etc
Is there any way to split those variables up so I can display them like this:
$data = $_POST['data'];
foreach ($data as $array) {
foreach ($array as $key=>$prices) {
$message .= ''.$item1.''.$item2.''.$item3.''.$item4.'';
}
$message .= '<br>';
}