Strict Standards:  Only variables should be passed by reference

 

#错误的方法
echo end(explode('.', $filename));

#正确的使用
$array  = explode('.', $filename);
$result = end($array);    //end方法只能接受一个引用(也就是变量,不能将整个表达式放在里面)

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-11-18
  • 2021-06-09
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-02-28
  • 2022-12-23
  • 2021-05-29
  • 2022-12-23
相关资源
相似解决方案