How do I take off a certain character in a string and put them all together in an array like:
"{2} in better that {1} when it comes to blah blah blah"
and the output would be:
array(0 => "2", 1 => "1");
I have used regular expression but it seems like it doesn't loop throughout the string or maybe I'm missing something?
Thanks