Created
June 3, 2022 12:55
-
-
Save pedropuppim/61e4489378e154922b39fc60f165837c to your computer and use it in GitHub Desktop.
Converte em array linha de e-mails com 2 tipos de separadores , e ;
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//Converte em array linha de e-mails com 2 tipos de separadores , e ; | |
$email="fernanda@ajudes.org.br;josi@ajudes.org.br;"; | |
$emails = preg_split('/[\s,; ]+/', $email, -1, PREG_SPLIT_NO_EMPTY); | |
print_r($emails); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment