Current Path : /home/sudancam/public_html3/games/wp-content/plugins/mailpoet/lib/Util/ |
Current File : //home/sudancam/public_html3/games/wp-content/plugins/mailpoet/lib/Util/SecondLevelDomainNames.php |
<?php namespace MailPoet\Util; if (!defined('ABSPATH')) exit; class SecondLevelDomainNames { public function get($host) { if (preg_match('/[^.]*\.[^.]{2,3}(?:\.[^.]{2,3})?$/', $host, $matches)) { return $matches[0]; } return $host; } }