'Notice: Array to string conversion in / Warning: Illegal offset type
Hello I have a code which occurs 2 errors in the first line.
Notice: Array to string conversion and Warning: Illegal offset type
while (isset($config['group']) AND isset($config_file->$config['group']))
{
// Temporarily store config group name
$group = $config['group'];
unset($config['group']);
// Add config group values, not overwriting existing keys
$config += $config_file->$group;
}
How can i Fix it?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
