I get a array via POST which is generated from a% field of the form, the problem is that this array has information with a comma.
Example: 2.7 cm, 3.1 cm.
I enter the database separated by commas to be retrieved using them, but in this case it goes wrong.
I would like to change the comma to '__' to use implode generating name="Referencia[]"
and not comma delimiting in this case.
Expected result:
$MyArray = explode("__", array_filter( $_POST['Referencia'] ) );
echo $MyArray; // 2,7 cm__3,1
NOTE: The data is currently inserted in this format ' 7,7 cm, 8,8 cm, 9,8 cm , , the solution can be made in the form or after sending, but the interesting thing would be to insert into the database already formatted like this: ' 7,7 cm__8,8 cm__9,8 cm '