I have the following array $detalhes
:
Array ( [0] => Array ( [dt_detalhes] => 2016-03-09 [desc_detalhes] => Viabilidade [tp_processo] => Viabilidade [vl_protocolo] => 1234 )
[1] => Array ( [dt_detalhes] => 2016-03-12 [desc_detalhes] => Sincronizado [tp_processo] => Sincronizado [vl_protocolo] => 12345 )
[2] => Array ( [dt_detalhes] => 2016-03-11 [desc_detalhes] => Integrador [tp_processo] => Integrador [vl_protocolo] => 123456 ) )
I would like to pass it into a modal, like this:
<button type="button" data-toggle="modal" data-target="#detalhes"
data-id="<?=$linha['id_processo']?>" data-detalhes="<?=$details?>">
How can I do this? In the way tried above the following error:
Array to String Conversion
OBS: I need to pass the entire array.