<?php $array = ['name' => 'aalaap','age' => 29, 'location' => 'mumbai']; $result = []; foreach ($array as $k => $result[]) { $result[] = $k; } var_export($result);
You have javascript disabled. You will not be able to edit any code.