I have a variable that is passed from another data source. The other data source is not capable of choosing distinct addresses:
$headers="joe@mail.com, bob@mail.com, david@mail.com, joe@mail.com, joe@mail.com";
Is there a simple way to eliminate the duplicate email addresses (joe@mail.com)? I can turn this into an array and apply array_unique and then return it back to a basic string but was hoping there might be another method.
- - picklefish - -
$headers="joe@mail.com, bob@mail.com, david@mail.com, joe@mail.com, joe@mail.com";
Is there a simple way to eliminate the duplicate email addresses (joe@mail.com)? I can turn this into an array and apply array_unique and then return it back to a basic string but was hoping there might be another method.
- - picklefish - -