3v4l.org

run code in 300+ PHP versions simultaneously
<?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));

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
168.14 ms | 1903 KiB | 14 Q