I want to convert my 2D array into 1D array.
When I do var_dump($image_name_db);
It shows :
array(2) {
[0]=>
array(1) {
["image"]=>
string(7) "pic.PNG"
}
[1]=>
array(1) {
["image"]=>
string(14) "abouttown3.jpg"
}
}
Now how can I convert It into 1D array. As I want to compare two arrays. One array is 1D and other array is 2D, that is why i want 2D array in 1D. So i need both of them in 1D to compare easily. I am using codeigniter.