I have to split a string and I want to avoid splitting it with commas inside parentheses. So how can I implement that?
Örnek:
$string = "string1 (sString1, sString2,(ssString1, ssString2)), string2, string3";
result should be:
array(
[0] => string1 (sString1, sString2,(ssString1, ssString2))
[1] => string2
[2] => string3
)