I have text like bellows:
$text ="demo demo {dd}hehe ahah {mm}and so on{like}";
how can I get the array $s from $text,whick $s should like this:
$S[0] = "dd";
$S[0] ="mm";
$S[0] = "like";
I can get $s by using str_split, does anyone have some simple way?
thanks!