PHP nested array search

前端 未结 5 700
一整个雨季
一整个雨季 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:55

    Anyway, you can strip whitespace characters and use (mb_)substr_count() but it leads to getting false positives.

提交回复
热议问题