I'm trying to leave the array separate but it comes all together this way fernandohenriquelopes I wanted to separate them so I can do multiple insert in the database so the code is
// aqui recebe em array
$dad = filter_input(INPUT_POST, 'tituloFoto', FILTER_DEFAULT, FILTER_REQUIRE_ARRAY);
foreach ($dad as $id => $titulos) {
$re = array( ++$id => $titulos);
print_r($re); // desta forma sai normal
//Array ( [1] => fernadno ) Array ( [2] => rafael ) Array ( [3] => yeyeye )
// se eu tirar o print_r fica assim
Notice: Array to string conversion in C:\xampp\htdocs\arte-beleza\galeria-gravar.php on line 21
Array (3x)
}
When I write to the bank it only shows array 3 times Does anyone help me?