• Jetzt anmelden. Es dauert nur 2 Minuten und ist kostenlos!

Delete characters from array

Jeremygolf

Mitglied
Hi,

I have an array, which I get from mysql. It looks about like this:
[yes,yes,-,no,yes,yes-,yes,no,yes,yes,-,.....]
Now I want to delete all items which are a minus (-). How can I do that?
Array should contain at the and only yes and no.

Thank you
 
Zurück
Oben