public function findUrl($message) {
$domains = ['.com', '.ru', '.cc'];
foreach($domains as $domain) {
$data = strpos($message, $domain);
return $data;
}
}
public function findUrl($message) {
$domains = '.com';
$data = strpos($message, $domains);
return $data;
}