Created
June 26, 2017 17:24
-
-
Save hskrasek/52000b0183c61ecd57ddaeae5000feeb to your computer and use it in GitHub Desktop.
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 | |
tap(null, function (&$email) { | |
preg_match('/\@(.*)\./', $email, $matches); | |
$email = $matches[1]; | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment