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