I have this string
$url = offer?offer_id={{offer_category_id}}&item{{offer_title}}
Is there a way how I can create a php array with the text inside the {{ }} thus resulting an array similar to
$array[0] = 'offer_category_id'
$array[1] = 'offer_title'
This is what I have but its not working as wanted
preg_match("/{{([^\"]*)\}}/", $url , $cols);