I am trying to split my string where you see the phrase %3B
and &
. I am a little confused with the pattern. Here is my code
$string = '123123123%3B123123213%3B&action=123123%3B34234234'
print_r(preg_split('/[(%3B|&)]/', $string));
I am trying to split my string where you see the phrase %3B
and &
. I am a little confused with the pattern. Here is my code
$string = '123123123%3B123123213%3B&action=123123%3B34234234'
print_r(preg_split('/[(%3B|&)]/', $string));