I would like to convert the array:
Array (
[category] => category
[post_tag] => post_tag
[nav_menu] => nav_menu
[link_category] => link_categ
You should use the array_values()
function.
create a new array, use a foreach loop in PHP to copy all the values from associative array into a simple array
$data=Array(); //associative array
$simple_array = array(); //simple array
foreach($data as $d)
{
$simple_array[]=$d['value_name'];
}
simply use array_values function:
$array = array_values($array);