php - how to display 2d array in blade template sent from controller to view -


array (     [0] => array         (             [0] => piya             [1] => piya@gmail.com             [2] => smting             [3] => 1234567890             [4] => gnfvjn             [5] => 210         )      [1] => array         (             [0] => dash             [1] => dash@gmail.com             [2] => smting             [3] => 3213243547             [4] => gnfvjn             [5] => 211         )      [2] => array         (             [0] => dash             [1] => dash@gmail.com             [2] => smting             [3] => 3213243547             [4] => gnfvjn             [5] => 212         ) ) 

how display array structure ? keep getting "trying property of non-object" error.

since 2 dim. array, first foreach outputs 2nd array(ex: ['el1','el2'....]). 2nd foreach outputs string elements(ex: 'el1', 'el2')

@foreach($array $array2)  @foreach($array2 $value)   {!! $value !!}  @endforeach @endforeach 

Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -