I have the following foreach:
$items = "";
foreach ($_POST['termos'] as $item) {
if(isset($item)){
$items = $items . $item . '+';
}
}
It returns me:
Array (
[0] => 1-valor+
[1] => 2-valor+
[2] => 3-valor+
)
Question: How to ALWAYS remove the last character from the last value of this array, in this case the +
?