So ist es auch:
test.php:
<?php
$items[0]='bar';
$items[1] = 'foo';
$items[1]['childs'][0] =& $items[0];
>
> Ausführen ... und:
>
> PHP Warning: Illegal string offset 'childs' in /tmp/test.php on line 4
>
> Warning: Illegal string offset 'childs' in /tmp/test.php on line 4
> PHP Fatal error: Cannot use string offset as an array in /tmp/test.php on line 4
Könnt ihr mir auch sagen wie ich das Problem lösen kann. Ich verstehe nämlich nicht ganz wie ich weiter vorgehen kann.