str_contains


str_contains ( $haystack, $needle )

Parameters:
  • (string) haystack The string to search in.
  • (string) needle The substring to search for in the haystack.
Returns:
  • (bool) True if `$needle` is in `$haystack`, otherwise false.
Defined at:

Description

Polyfill for `str_contains()` function added in PHP 8.0.Performs a case-sensitive check indicating if needle is contained in haystack.

Related Functions

wp_ssl_constants, ms_file_constants, the_content, user_can, script_concat_settings

Top Google Results

User discussions

wpseek mobile