Answers for "string exists check in php"

PHP
5

check if text exists in string php

$a = 'How are you?';

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

Code answers related to "string exists check in php"

Browse Popular Code Answers by Language