In this scenario everything works as expected:
$someString = '1|2|3|4';
list($val1, $val2, $val3, $val4) = explode("|", $someString);
In the followin scenario there are more values in the $someString than what there are $vals to put them in:
$someString = '1|2|3|4|5|6';
list($val1, $val2, $val3, $val4) = explode("|", $someString);
How can I make it so that in the 2nd case the $val4 would be 4|5|6 instead of just 4, or how do I put these "leftovers" at the end of the $val4 without adding $val5, $val6 etc. so it would be 456?