part of string in array contains php code example Example: like %% inside the array php preg_match('~' . preg_quote('.SEARCH_ITEM.', '~') . '~', 'STRING');