Basically I want to split an array element if it contains a comma, and preserve element order within the array.
So I have an element like this:
$array = ["coke", "joke", "two,parts", "smoke"];
And I want to turn it find the one with the comma, split it by the comma into two separate elements and maintain order as if nothing had happened.
This is the desired result:
$array = ["coke", "joke", "two", "parts", "smoke"];