これらの文字列の間で最も一般的な単語を使用して、複数の文字列から新しい文字列を作成しようとしています。例えば:
$string[0] = 'Apple iPhone 4S 16GB Locked to Orange';
$string[1] = 'iPhone 4S 16GB boxed new';
$string[2] = 'iPhone 4S 16GB unlocked brand new';
$string[3] = 'Apple iPhone 16GB 4S Special Offer';
$string[4] = 'Apple iPhone 4S Sim Free';
## The new string should be:
$new_string = 'Apple iPhone 4S 16GB';
何百もの元の文字列、または2つだけの文字列が存在する可能性があります...
どこから始めればいいのかわからないので、助けていただければ幸いです。