Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在从 Solr 获取您的意思是字符串时,我收到以下警告。有什么办法摆脱这个吗?
if (is_object($results->spellcheck)){ $didyoumean = $results->spellcheck->suggestions->collation; } else{ $didyoumean=false; }
提前致谢 :)
检查 Collation 是否为 null 或是否存在 Real 值?
if (isset($results->spellcheck->suggestions->collation)){ $didyoumean = $results->spellcheck->suggestions->collation; else{ $didyoumean=false; }
希望这可以帮助 :)