3
Guys I got the following foreach:
$items = "";
foreach ($_POST['termos'] as $item) {
if(isset($item)){
$items = $items . $item . '+';
}
}
He returns to me:
Array (
[0] => 1-valor+
[1] => 2-valor+
[2] => 3-valor+
)
Question: How ALWAYS withdraw the last character of the last value of this array, in case the +
?
Note that it only works with numerical arrays.
– gmsantos