Risolto con
Codice PHP:
 $newValue '$data->'.$chiavi.' = &$value;'
Grazie ancora.