Only variables should be passed by reference

后端 未结 12 1634
囚心锁ツ
囚心锁ツ 2020-11-22 06:14
// Other variables
$MAX_FILENAME_LENGTH = 260;
$file_name = $_FILES[$upload_name][\'name\'];
//echo \"testing-\".$file_name.\"
\"; //$file_name = strtolower
12条回答
  •  暖寄归人
    2020-11-22 06:31

    PHP offical Manual : end()

    Parameters

    array
    

    The array. This array is passed by reference because it is modified by the function. This means you must pass it a real variable and not a function returning an array because only actual variables may be passed by reference.

提交回复
热议问题