Here i have one array, in that array i want to take only error,how can take the value of error, I am new PHP developer i tried but i am not getting the answer i tried like this echo $_FILES['file']['error'],but is not printing the output
print_r($_FILES)
Array
(
[file] => Array
(
[name] => Array
(
[0] => 1.png
)
[type] => Array
(
[0] => image/png
)
[tmp_name] => Array
(
[0] => C:\xampp5.6\tmp\php96F6.tmp
)
[error] => Array
(
[0] => 0
)
[size] => Array
(
[0] => 166275
)
)
)
[error] => Array ( [0] => 0 )your upload didn't fail (yet). As per the manual "Value: 0; There is no error, the file uploaded with success."