{Hello} {my} {name} {is} {Bob}
How can I loop in all the world in between the {
and }
?.
$matches = array();
$t = preg_match_all('/{(.*?)\}/s', '{Hello} {my} {name} {is} {Bob}', $matches);
foreach ($matches as $match) {
// Should display Hello, my, name, is, Bob
}