I need to split my string input into an array at the commas.

Is there a way to explode a comma-separated string into a flat, indexed array?

Input:

9,admin@example.com,8

Output:

['9', 'admin@example', '8']  

8 Answers
8

Leave a Reply

Your email address will not be published. Required fields are marked *