I have a URI that contains both &
and &&
and I need to split it into an array only at the single &
delimiter, e.g. query1=X&query2=A&&B&query3=Y
should print out
array(
0 => query1=X
1 => query2=A&&B
2 => query3=Y
)
I know I can use preg_split
but can't figure out the regex. Could someone help?