-2
I receive an array via POST which is generated from a field name="Referencia[]"
of the form, the problem is that in this array there is information with comma.
Example: 2.7 cm, 3.1 cm.
I enter in the database separated by commas to be recovered using them, but in this case wrong separates.
I’d like to exchange the comma for '__' to use the implode generating 2,7 cm__3,1 cm
and not delimiting by comma in this case.
Expected result:
$MyArray = explode("__", array_filter( $_POST['Referencia'] ) );
echo $MyArray; // 2,7 cm__3,1
NOTE: Currently the data is 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 would be to insert in the database already formatted like this: '7,7 cm__8,8 cm__9,8 cm'
I only regret the "being" not understand the question and negativar !
– denis