php
$new_position = $_POST['new_position'];
$new_positionpieces = explode(",", $new_position);
foreach ($new_positionpieces as $value) {
echo $value."<br>";
}
cat_37<br>cat_36<br>
From what I gather if I were to echo $new_positionpieces[0]
it would say cat_37
How would I be able to get that 0 into a variable inside my foreach
so that If it were something like
echo $item.' - '.$value.'<br>';
and outputs 0 - cat_37
so that I am able to put it into my db