$oneDimensionalArray = array_map('current', $twoDimensionalArray); /* current() function returns the value of the current element in an array. for ex : $fruits = array("banana", "apple", "orange"); echo current($fruits) //will return "banana" since current pointer is on index 0 which is banana */