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,[email protected],8
Output:
['9', 'admin@example', '8']
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,[email protected],8
Output:
['9', 'admin@example', '8']