Help Me, What Does Warning: Illegal Offset Type In Mean?
- Forums
- PHP
- 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. [8639], Last Updated: Sat May 18, 2024
charles
Wed Dec 31, 1969
0 Comments
174 Visits
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.