Skip to content

Instantly share code, notes, and snippets.

@hskrasek
Created June 26, 2017 17:24
Show Gist options
  • Save hskrasek/52000b0183c61ecd57ddaeae5000feeb to your computer and use it in GitHub Desktop.
Save hskrasek/52000b0183c61ecd57ddaeae5000feeb to your computer and use it in GitHub Desktop.
<?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