Hello, I am developing dropshipping. There is json. I don’t understand how to build an array with sku so that I get this output: 
$sku['sku']['colors'][0]['name'] = 'как на картинке'; $sku['sku']['colors'][1]['name'] = 'чёрный'; $sku['sku']['size'][0] = '36'; $sku['sku']['size'][1] = '35'; print_r($sku); In json everything is thrown out horribly, that is, one json for both view and comparison.