0

I have error in my php file -> "Strict Standards: Only variables should be passed by reference in /page/editor/manager/trlib.php on line 57"

function TR_fileExt($filename)
 {
  return strtolower(end(explode('.', $filename))); //// line 57
 }

any ideas how to fix it?

Peeter
  • 199
  • 2
  • 22
  • 2
    `$tmp = explode('.', $filename); return strtolower(end($tmp));` see http://stackoverflow.com/a/4636183/689579 for reason. – Sean Dec 18 '15 at 02:21
  • 2
    and you might be interested in http://docs.php.net/pathinfo – VolkerK Dec 18 '15 at 02:43

0 Answers0