Dear gurus, help me figure it out; I don’t understand how the algorithm will make up: there is an array:
$massive = array( '0' => array('propertyname' => 'цвет','value' => 'red'), '1' => array('propertyname' => 'версия', 'value' => 'android') ); From the $ massive array you need to collect this:
$result = array( 'цвет' => array('value' => 'red'), 'версия' => array('value' => 'android') ); that is, it will separate the propertyname into a separate array in the foreach loop in the $ massive array there may be other parameters, for example:
'2' => array('propertyname' => 'память', 'value' => '16') and of course it will add this to $ result as a separate parameter:
'память' => array('value' => '16') I hope clearly explained.