[英]PHP issue with htmlentities in 5.6 and 7.0
我最近在AWS EC2實例上從PHP 5.6升級到PHP 7.0。 我有如下代碼
stripslashes(htmlentities(self::$_variable));
在PHP 5.6中按要求工作,但在7.0中則給出以下警告
<b>Warning</b>: htmlentities() expects parameter 1 to be string, array given in
現在,我需要知道這是由於版本更改或其他原因引起的。 任何支持您答案的文檔或鏈接將非常有幫助。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.