Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

preg_match in php

<?php
$my_url = "www.guru99.com";
if (preg_match("/guru/", $my_url))
{
	echo "the url $my_url contains guru";
}
else
{
	echo "the url $my_url does not contain guru";
}
?>
Source by www.guru99.com #
 
PREVIOUS NEXT
Tagged: #php
ADD COMMENT
Topic
Name
2+9 =