Convertire Google\Protobuf\Struct in un array PHP
Cosa ho imparato oggi: come convertire un oggetto Google\Protobuf\Struct in un array PHP.
use Google\Protobuf\Struct;
function struct2array(Struct $struct) {
return json_decode($struct->serializeToJsonString(), true);
}




