PHP loop trough JSON repsonce and insert into MYSQL : for a school project i want to loop trough a json responce and insert the data into a mysql database.
The json responce looks like this:

    ID	123456
    data	
    	0	
    		updated_at	1234567890123
    		total	
    			last	
    				avg_daily_volume	
    				last_90d	12
    				last_30d	12
    				last_7d		12
    				last_24h	12
    			safe_ts	
    				last_90d	12
    				last_30d	12
    				last_7d		12
    				last_24h	12
    			min	12
    		hash_name	"TEST"
    		name	"TEST"
    		nameID	"123456789"
    	1	
    		updated_at	1234567890123
    		total	
    			last	
    				avg_daily_volume	
    				last_90d	12
    				last_30d	12
    				last_7d		12
    				last_24h	12
    			safe_ts	
    				last_90d	12
    				last_30d	12
    				last_7d		12
    				last_24h	12
    			safe	12
    			mean	12
    			max		12
    			avg		12
    			min		12
    			latest	12
    		hash_name	"TEST"
    		name	"TEST"
    		nameID	"234567890"
    	3 ........

Every array should be a own row in the mysql database.

I'm not sure how to do this since every array has a custom name (0, 1, 2, ...).

