I have the following text:
$texto = "Olá {cliente}, seja bem vindo ao site {site}!
Aqui você terá acesso as seguintes opções:
{opcoes}
Estes dados foram gerados automaticamente em {data}
Pela empresa {empresa}";
Note that we have several tags
between the keys, I need to compile a PHP
that retrieves only these tags, and place them inside a array()
, because I will include the tags in a different table.
How can I recover only those within the keys?
The result I'd like would be:
Array (
[0] => {x},
[1] => {y}
)