PHP nested array search

前端 未结 5 730
一整个雨季
一整个雨季 2021-01-15 17:37

I\'m new in PHP

I have an array like this

$suspiciousList = array(
array (\"word\" => \"badword1\", \"score\" => 400, \"type\" => 1), 
array         


        
5条回答
  •  一生所求
    2021-01-15 17:50

    1. Strip spaces
    2. Search with ONE regular expression containing all your keywords, like this: (word1|word2|word3)

提交回复
热议问题