Description

strcontains()1 tells us if string contains other string.

Syntax

if (str_contains('Lululu I've got some apples, 'apples')) { /* … */ }

Footnotes

Footnotes

  1. https://wiki.php.net/rfc/str_contains