only variables should be passed by reference php 7 code example
Example: Only variables should be passed by reference in
$tmp = explode('.', $file_name);
$file_extension = end($tmp);
$tmp = explode('.', $file_name);
$file_extension = end($tmp);