0 LIKES LikeUnLike
I have a string:$string = "Hi there {name}. I like to eat {fruit}.";I want to get the following output:([0] => "name", [1] => "fruit")I thought I could use preg_split, but it doesn't seem to work.$array = preg_split('/{([^}]*)}/', $string);Please help.
Tags:
Report (0) (0) | earlier
Latest activity: earlier. This question has 1 answers.