How To Find Words Combination In Php
问题 I have a array $new_array=array('c','a','m','t','p'); Now I want to find the words combination which exists in the words table. I have tried to achieve but not succeeded. this is my php code . $words = array(); $set = powerSet($new_array,2); $mysql = new mysqli("localhost","root","","startup"); $sql = "SELECT wordid from words WHERE lemma = '%s'" ; foreach ($set as $key => $value) { $word = implode("", $value); $wordPermutation = permute($word); foreach($wordPermutation as $keyWord) { if(!in