var dump on $filters_array is
array (size=2)
0 =>
array (size=3)
'filter' => string 'Purchase Date' (length=13)
'date_start' => string '2019-10-01' (length=10)
'date_end' => string '2019-11-30' (length=10)
1 =>
array (size=3)
'filter' => string 'Payments Date' (length=13)
'date_start' => string '2019-10-01' (length=10)
'date_end' => string '2019-11-13' (length=10)
My code to loop is
@if( !empty($filters_array) )
@foreach( $filters_array as $filters )
@foreach( $filters as $key => $value )
@endforeach
@endforeach
@endif
but it returns an error accessing it using controller is working fine shows the key and value
htmlspecialchars() expects parameter 1 to be string, array given when looping through array
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire