Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/234.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 显示意外的";。但我不知道为什么_Php_Mysql - Fatal编程技术网

Php 显示意外的";。但我不知道为什么

Php 显示意外的";。但我不知道为什么,php,mysql,Php,Mysql,分析错误:语法错误,意外'‬' (T_字符串) 而我用的是前几行 $past=$row['date']; $present= date("Y-m-d H:i:s"); $second= strtotime($present) - strtotime($past); if($second<=60){echo "Just Now";} elseif($second<=3600){echo round($second/60) ."min";} elseif($second<=8640

分析错误:语法错误,意外'‬' (T_字符串)

而我用的是前几行

$past=$row['date'];
$present= date("Y-m-d H:i:s");
$second= strtotime($present) - strtotime($past);
if($second<=60){echo "Just Now";}
elseif($second<=3600){echo round($second/60) ."min";}
elseif($second<=86400){echo round($second/3600) . "hour";}
elseif($second<=604800){echo round($second/86400) . "day";}
elseif($second<=2592000‬){echo round($second/604800) . "week";} //in this line
elseif($second<=31536000‬‬){echo round($second/2592000) . "month";}
else{echo $row['date'];}
$pass=$row['date'];
$present=日期(“Y-m-d H:i:s”);
$second=strotime($present)-strotime($pass);

如果($second代码中有一些不可见的unicode字符。您可以尝试使用以下字符:

$pass=$row['date'];
$present=日期(“Y-m-d H:i:s”);
$second=strotime($present)-strotime($pass);
如果($second)(您在那里有一些不可见的字符,请使用此示例代码)