<small id='bJwMh'></small><noframes id='bJwMh'>

<i id='bJwMh'><tr id='bJwMh'><dt id='bJwMh'><q id='bJwMh'><span id='bJwMh'><b id='bJwMh'><form id='bJwMh'><ins id='bJwMh'></ins><ul id='bJwMh'></ul><sub id='bJwMh'></sub></form><legend id='bJwMh'></legend><bdo id='bJwMh'><pre id='bJwMh'><center id='bJwMh'></center></pre></bdo></b><th id='bJwMh'></th></span></q></dt></tr></i><div id='bJwMh'><tfoot id='bJwMh'></tfoot><dl id='bJwMh'><fieldset id='bJwMh'></fieldset></dl></div>

      1. <legend id='bJwMh'><style id='bJwMh'><dir id='bJwMh'><q id='bJwMh'></q></dir></style></legend>

        <tfoot id='bJwMh'></tfoot>
        • <bdo id='bJwMh'></bdo><ul id='bJwMh'></ul>

        考虑到 Gmail (user.name+label@gmail.com),如何在 PHP 中检查重复的电子邮件地址

        How to check for a duplicate email address in PHP, considering Gmail (user.name+label@gmail.com)(考虑到 Gmail (user.name+label@gmail.com),如何在 PHP 中检查重复的电子邮件地址)
        <i id='rVufM'><tr id='rVufM'><dt id='rVufM'><q id='rVufM'><span id='rVufM'><b id='rVufM'><form id='rVufM'><ins id='rVufM'></ins><ul id='rVufM'></ul><sub id='rVufM'></sub></form><legend id='rVufM'></legend><bdo id='rVufM'><pre id='rVufM'><center id='rVufM'></center></pre></bdo></b><th id='rVufM'></th></span></q></dt></tr></i><div id='rVufM'><tfoot id='rVufM'></tfoot><dl id='rVufM'><fieldset id='rVufM'></fieldset></dl></div>

            <legend id='rVufM'><style id='rVufM'><dir id='rVufM'><q id='rVufM'></q></dir></style></legend>

              <bdo id='rVufM'></bdo><ul id='rVufM'></ul>

              • <small id='rVufM'></small><noframes id='rVufM'>

                  <tbody id='rVufM'></tbody>
                <tfoot id='rVufM'></tfoot>
                  本文介绍了考虑到 Gmail (user.name+label@gmail.com),如何在 PHP 中检查重复的电子邮件地址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  如何在 PHP 中检查重复的电子邮件地址,并考虑到 Gmail 的自动标记器和标点符号?

                  How can I check for duplicate email addresses in PHP, with the possibility of Gmail's automated labeler and punctuation in mind?

                  例如,我希望将这些地址检测为重复:

                  For example, I want these addressed to be detected as duplicates:

                           username@gmail.com
                          user.name@gmail.com
                     username+label@gmail.com
                    user.name+label@gmail.com
                  

                  尽管 Daniel A. White 声称:在 Gmail 中,@"(和标签)之前随机位置的点可以随意放置.user.name@gmail.com 和 username@gmail.com 实际上是同一个用户.

                  Despite what Daniel A. White claims: In Gmail, dots at random places before the '@' (and label) can be placed as much as you like. user.name@gmail.com and username@gmail.com are in fact the same user.

                  推荐答案

                  $email_parts    = explode('@', $email);
                  
                  // check if there is a "+" and return the string before
                  $before_plus    = strstr($email_parts[0], '+', TRUE);
                  $before_at      = $before_plus ? $before_plus : $email_parts[0];
                  
                  // remove "."
                  $before_at      = str_replace('.', '', $before_at);
                  
                  $email_clean    = $before_at.'@'.$email_parts[1];
                  

                  这篇关于考虑到 Gmail (user.name+label@gmail.com),如何在 PHP 中检查重复的电子邮件地址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  DeepL的翻译效果还是很强大的,如果我们要用php实现DeepL翻译调用,该怎么办呢?以下是代码示例,希望能够帮到需要的朋友。 在这里需要注意,这个DeepL的账户和api申请比较难,不支持中国大陆申请,需要拥有香港或者海外信用卡才行,没账号的话,目前某宝可以
                  PHP通过phpspreadsheet导入Excel日期,导入系统后,全部变为了4开头的几位数字,这是为什么呢?原因很简单,将Excel的时间设置问文本,我们就能看到该日期本来的数值,上图对应的数值为: 要怎么解决呢?进行数据转换就行,这里可以封装方法,或者用第三方的
                  mediatemple - can#39;t send email using codeigniter(mediatemple - 无法使用 codeigniter 发送电子邮件)
                  Laravel Gmail Configuration Error(Laravel Gmail 配置错误)
                  Problem with using PHPMailer for SMTP(将 PHPMailer 用于 SMTP 的问题)
                  Issue on how to setup SMTP using PHPMailer in GoDaddy server(关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题)

                  <tfoot id='11iOn'></tfoot>
                  <i id='11iOn'><tr id='11iOn'><dt id='11iOn'><q id='11iOn'><span id='11iOn'><b id='11iOn'><form id='11iOn'><ins id='11iOn'></ins><ul id='11iOn'></ul><sub id='11iOn'></sub></form><legend id='11iOn'></legend><bdo id='11iOn'><pre id='11iOn'><center id='11iOn'></center></pre></bdo></b><th id='11iOn'></th></span></q></dt></tr></i><div id='11iOn'><tfoot id='11iOn'></tfoot><dl id='11iOn'><fieldset id='11iOn'></fieldset></dl></div>

                    <bdo id='11iOn'></bdo><ul id='11iOn'></ul>
                  • <legend id='11iOn'><style id='11iOn'><dir id='11iOn'><q id='11iOn'></q></dir></style></legend>

                    <small id='11iOn'></small><noframes id='11iOn'>

                          <tbody id='11iOn'></tbody>