Answers for "use php if inside a string"

PHP
1

How do I check if a string contains a specific word php

$a = 'How are you?';

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

Code answers related to "use php if inside a string"

Browse Popular Code Answers by Language