How do I transform an array of numbers into a single string in php?
In the code below the variable $ result is the array of numbers, and I tried to convert it to a single string with the implode () function. But it does not seem to work because php gives the message 'Notice: Array to string conversion in ...' (QUERY LINE
And in the database did not work persistence ...
How to do this conversion?
//Result é o array de números. Preciso convertê-lo para uma String...
$resultado = implode($result);
mysqli_query($con,"INSERT INTO forum (codUsuario,titulo,mensagem) VALUES('$result','$titulo','$mensagem');");