hello all im trying to do the following
break a string up into array elements using brackets as start and end delimiters but the pattern keeps giving me the whole string in a single element array and not EACH bracketed value in its own array element as i want, any ideas.
$string_vars="[0][297][12][message blah blah]";
$holder=preg_split"/[\$/",$string_vars,"PCRE_UNGREEDY");
var_dump($holder);
GETS ME:
array(1) {
[0]=>
string(38) "[0][297][12][message blah blah ]"
TRYING TO GET:
array(4){
[0]=>
string(3)"[0]"
[1]=>
string(5)"[297]"
[2]=>
string(4)"[12]"
[3]=>
string(20)"[messages blah blah ]"
any ideas??
AJ