php check when the the string dont hve string code example Example: contains php if (strpos($a, 'are') !== false) { echo 'true'; }