Answers for "check string is present in string using php"

PHP
0

Check if a String Contains a Substring in PHP

phpCopy<?php
$mystring = "This is a PHP program.";

if (strpos($mystring, "program.") !== false) {
    echo("True");
}
?>
Posted by: Guest on April-23-2021

Code answers related to "check string is present in string using php"

Browse Popular Code Answers by Language