I need to split the string bellow into array keys like in this format:
string = "(731) some text here with number 2 (220) some 54 number other text here"
convert into:
array(
'731' => 'some text here with number 2',
'220' => 'some 54 number other text here'
);
I have tried:
preg_split( '/\([0-9]{3}\)/', $string );
and got:
array (
0 => 'some text here',
1 => 'some other text here'
);