How can I prevent the vertical bar from being displayed at the end of array that I have selected?
I would simply like to remove the pipe-separator from the end.
$Field = trim($_POST['seleField']);
if($Field == 'OrderDay'){
$Value = '';
foreach($_POST['day'] as $selected){
$Value .= trim($selected) ."|";
}
}