Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
特定のテキストが配列内にあるかどうかを確認する必要があるため、基本的には配列内の stristr です。現在、in_array関数を実行していますが、テキストが配列値の一部にすぎないため、それを取得できません。
たとえば、配列内の「man」(「Manchester United」、「Liverpool」、「Arsenal」) を検索すると、現在は何も返されませんが、Manchester united などを返すために必要です。
誰かが助けてくれることを願っています