Answers for "checking if two strings contains specific word in an array php"

PHP
5

how to check if a string contains a substring in php

$a = 'How are you?';

if (strpos($a, 'are') !== false) {
    echo 'true';
}
Posted by: Guest on October-18-2020

Code answers related to "checking if two strings contains specific word in an array php"

Browse Popular Code Answers by Language