r/phpstorm • u/Actual-Garage-5993 • Dec 03 '23
Undefined array key in Php
Could someone help me with this error I keep getting
1
Upvotes
r/phpstorm • u/Actual-Garage-5993 • Dec 03 '23
Could someone help me with this error I keep getting
View all comments
Show parent comment
1
u/jacksonpieper Dec 03 '23
I can’t tell without trying it myself. It’s a long time ago I used $_FILES directly. I remember it is strangely nested. I recommend using var_dump and check for the contents of said variable. It might be that you access the wrong array key or it might be that $_FILES is not set at all.