Codice PHP:
$array_json json_decode($json);

foreach ( 
$array_json as $key => $value )
{
    
$var $key;
    
$dato $value;

ma ovviamente puoi usare direttamente $key e $value invece di fare quelle assegnazioni che non servono a niente.