Thanks for the response
What your function allows me to do is get the contents of what is in between the {}. I ran it on this variable:
$body="Please come again {fIrstname} {TeST} {lastname} {compaNy}more text";
and if I do this:
echo count(GetElements($subject));
all i get is fIrstname.
What i need is an array with {fIrstname}, {TeST}, {lastname}, and {compaNy} in it with the {}.
Thank you !
-Carl