<?php $array = [ ["name", "address", "city"], ["anoop", "palasis", "Indore"], ["ravinder", "annapurna", "Indore"] ]; var_export( array_map( fn($row) => array_combine($array[0], $row), array_slice($array, 1) ) );
You have javascript disabled. You will not be able to edit any code.