タグ

ブックマーク / wiki.php.net (1)

  • PHP: rfc:str_contains

    str_contains checks if a string is contained in another string and returns a boolean value (true/false) whether or not the string was found. The typical way to check if a string is contained in another is mostly done by using the functions strpos or strstr. Because this feature is such a common use-case in almost every project, it should deserve its own dedicated function: str_contains. Repurposin

    bootJP
    bootJP 2020/06/09
    PHPやっと文字列検索専用の関数追加されたのか。
  • 1