Help Me, What Does Warning: Illegal Offset Type In Mean?
- Help Me, What Does Warning: Illegal Offset Type In Mean?
if you are using php script and you are getting this error that says Warning: Illegal offset type in i will tell you exactly what it means. , Last Updated: Sun Jun 14, 2020
Wed Dec 31, 1969
today i was running a php script and i got this warning message: it said
Warning: Illegal offset type in /home/www/functions.php on line 19
so what does this mean.
when i look at line 19 i had this code:
$mysql[ $myArray[$i] ];
i was running a loop, so the answer to this questions is simple. EMPTY
it just means that the array element is empty, in my case, $myArray[$i] didnt have any value. why? because i was doing it wrong.
again, this error you are geting because the array element is EMPTY.