Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php check if string contains url

preg_match('/(http|ftp|mailto)/', $string, $matches);
var_dump($matches);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #check #string #url
ADD COMMENT
Topic
Name
9+9 =