I want to split the a string if it contains ;
or ,
.
For example:
$str = "[email protected];[email protected],[email protected];[email protected];";
The expected result is:
result[0]="[email protected]";
result[1]="[email protected]";
result[2]="[email protected]";
result[3]="[email protected]";