I have following string:
$input = '[gallery ids="1151,1150,1149,1148,1147" name="ponny"]';
I need to parse it into an array, so desired output should looks like:
$output = array(
'ids' => '1151,1150,1149,1148,1147',
'name' => 'ponny'
);
Pseudo tag name gallery
will be ignored.
What is the most efficient way to do this in PHP ?