3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = Array ( '3' => 10, '2' => 2, '5' => 'Nakiya', ); /** * Implodes an array. * * @param array $array The array * @param string $with What to implode it with * * @return String */ function implodeArr($array, $with = '') { return implode($with, $array); } var_dump(implodeArr($array,','));

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
198.72 ms | 2236 KiB | 11 Q