I'm trying to use foreach to display all of my array content "But I don't want to use print_r that's not a solution for me"
My array is like this :
$array[1]['title'];
So I've tried to use this way foreach :
foreach ($array as $key => $value) {
echo "Key: $key; Value: $value<br />\n";
}
But I got only the key number and not the value of the array :
Key: 0; Value: Array
Key: 1; Value: Array
Key: 2; Value: Array
Key: 3; Value: Array
Key: 4; Value: Array
Key: 5; Value: Array
Key: 6; Value: Array
Key: 7; Value: Array
Key: 8; Value: Array
Key: 9; Value: Array
Key: 10; Value: Array
Key: 11; Value: Array
I just want to get the value of the array, I already got the number correctly.