- var_dump: documentation ( source)
- json_decode: documentation ( source)
- implode: documentation ( source)
- json_encode: documentation ( source)
<?php
$array = ['M-am întîlnit ieri cu','fosta mea profă de matematică'];
$text = implode(",",$array); // this looks good in db
$json = json_encode($array); // this don't and returns error when try to decode later.
var_dump($array, json_decode($json));