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