Coverting a string of tags to an array

Azmur

New Member
I have a string of tags that are usually separated by a single space, but the spacing may be inconsistent due to user input, hence the multiple spaces I added. \[code\]$somestring = "<h1> <a> <h5> <img> <a> <strong>";\[/code\]I'd like to store the tags into an array instead for easier manipulation. How can this be done with PHP?
 
Back
Top