This is the code:

```
$arr=explode(", ",$this->maList);

```

maList returns the entered mails: 

```
"test@test.com, test2@test2.com"

```

However, I want it to know whether I've used space after the comma or no space. Because if I enter this:

```
"test@test.com,test2@test2.com"

```

Then it becomes a single array element.

What can I do in this situation?