simple preg_match_all
Posted: Tue Dec 14, 2010 5:16 am
Hi Guys,
Ive been banging my head against a wall for the last half hour trying to parse the following string
and return it like so
can anyone help me with the regex pattern?
Cheers
Ive been banging my head against a wall for the last half hour trying to parse the following string
Code: Select all
[item=14][category=7][brand=2][item=15][item=2]
Code: Select all
array[0] = 'item=14';
array[1] = 'category=7';
array[2] = 'brand=2';
Cheers