@pule44 You use explode on the input textarea and split them by a new line (\n). Make a separate array for valid emails and for each valid email just add that email to the new array.
Don't forget to NOT use count() inside your for() loop. Set a variable first, and since you're checking the count() more than once, might as well set it at the beginning of the function.
@pule44 You use explode on the input textarea and split them by a new line (\n). Make a separate array for valid emails and for each valid email just add that email to the new array.
lifeg0eson666 10 months ago
@pule44 PHP has built into filters that can the validity of an email.
lifeg0eson666 10 months ago
Don't forget to NOT use count() inside your for() loop. Set a variable first, and since you're checking the count() more than once, might as well set it at the beginning of the function.
solepixel 1 year ago
i dont want you to see me next time. see me now beloved.
zerohtense 1 year ago
Nice tutorial.
Keep emm coming!
zachattackpro 1 year ago
@zachattackpro Thanks Zach
lifeg0eson666 1 year ago
Thank you so much I'm learning a lot from you.
I hope I could repay you someday =)
willzurmacht 1 year ago
@willzurmacht Glad you're learning something :)
lifeg0eson666 1 year ago