過去にこれら 2 つの関数を使用したことがありますが、問題なく動作しました。私は CakePHP アプリケーションを開発していますが、何らかの理由でこれらの関数のいずれかを使用しても何も起こりません。簡単なテストをセットアップしましたが、true が返されるなんて信じられません。
$loc_title = htmlentities($location['locations']['title']);
if(htmlentities($location['locations']['title']) === $location['locations']['title']){
echo "htmlentaties is broken.";
}
これらの機能が正常に動作しなくなる原因は何ですか?