I want explode a string to array with 2 dashes or more. For example I have a string such as "size--medium" or "size---medium" or "size----medium" or this pattern with more than 2 dashes, I want explode them to:
Array(
0 => size,
1 => medium
);
Thanks guys