search in php string code example Example: find in php string or $a = 'How are you?'; if (strpos($a, 'are') !== false) { echo 'true'; }