I\'m trying to simulate this error with a sample php code but haven\'t been successful. Any help would be great.
\"Cannot use string offset as an array\"
The error occurs when:
$a = array(); $a['text1'] = array(); $a['text1']['text2'] = 'sometext';
Then
echo $a['text1']['text2']; //Error!!
Solution
$b = $a['text1']; echo $b['text2']; // prints: sometext
..