Hello, perhaps can you point me to a previous discussion (I searched) for the best way to clean up a string and convert to an array. I’ll be asking people to insert tags with commas between tags, just like here on this forum ; “Separate tags using a comma.” I assume I want to replace beginning spaces with nothing, replace double spaces with single, then explode like this.
$tag_array = explode(",", $tag);
Thanks for any links to definitive answers !