I am doing a SQL query in my model and controller , I am printing the array values.
The view looks like this:
Array ( [campo1] => 98 [campo2] => SOLO [soma] => 1 ) Array ( [campo1] => 92 [campo2] => DARTH [soma] => 11 ).
But I would like to format it like this:
[campo1] => 98 =>[campo2] =>
SOLO [soma] => 1
[campo2] => 92 =>[campo2] =>
DARTH [soma] => 11
How to do it?
This is my foreach :
foreach ($variavel1 as $key) {
print_r($key);
}