how to find word in string code example Example: contains php if (strpos($a, 'are') !== false) { echo 'true'; }