Answers for "php regex strin start with"

PHP
0

php regex strin start with

$string = "amora";
$result = preg_match("#^amor(.*)$#i", $string);
if($result == 0)
{
    echo "No match";
}
else
{
    echo "Match found.";
}
//out: Match found.
Posted by: Guest on September-10-2021

Browse Popular Code Answers by Language