Ohi dottò
Mi dà Illegal offset type in questa riga:
Codice PHP:
if ($key == "name" && is_array($root[$val]))