PHP nested array search

前端 未结 5 746
一整个雨季
一整个雨季 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 18:00

    @f1ames : I'm using these following code to make it array.

        $words = mb_strtolower($words, 'UTF-8');
        $words = $this->removeUniCharCategories($words);
        $words = explode(" ",$words);
        //Remove empty Array !
        $words = array_filter($words);
        foreach ($words as &$value) {
            $newWords[] = $value;
        }
        $words = $newWords;
    

    But i'm still find the best sollution

提交回复
热议问题