I got this warning when i run a script on a web server (it works well on my other server). I do not know if this is caused by the server environment or something else.
Here is the line
Note:
$name is a string.
$charSets is an array
$j and $pos is an integer
charAt is a custom function.
How to fix this warning (actually although it is a warning, it causes an error in my script)?
- Kurniawan.
Code:
Warning: Cannot use a scalar value as an array
Here is the line
PHP:
$name{$j} = charAt($charSets[$j]['sets'], $pos);
$name is a string.
$charSets is an array
$j and $pos is an integer
charAt is a custom function.
How to fix this warning (actually although it is a warning, it causes an error in my script)?
- Kurniawan.








