I have this string
$names = "The names are: [Yossi] & [Jane] & [Mono] & [Kiko]"
and I want my input to be:
array / list => [Yossi, Jane, Mono, Kiko]
I tried using some function from here: link
But all I got was Yossi.
I understand the reasone that all I see from those functions is "Yossi" but I couldn't figure out I can I get the rest of the names in some sort of an array or some kind of a list.
Thanks!