I place several flags and put them in an array - for example: "tags []"
When you send them, I will tarnish them with commas.
If NO tags are tagged on the form and then submitted, I get errors because the script is trying to explode something that is not there.
I tried using something like this:
if (isset($_POST['tags'])){ $tags = implode(", ", noescape($_POST['tags'])); }
What is the best way to check if it exists and then blow it up?
isset, array_key_exists?
source share