how to search in php URL code example
Example: php check if string contains url
preg_match('/(http|ftp|mailto)/', $string, $matches);
var_dump($matches);
preg_match('/(http|ftp|mailto)/', $string, $matches);
var_dump($matches);