- var_export: documentation ( source)
- implode: documentation ( source)
<?php
$arr1 = array(
'tes1' => array(1, 2, 3),
'tes2' => array(2, 3, 4),
);
$arr2 = $arr1;
foreach($arr2 as &$item2) {
$item2 = implode('+', $item2);
}
var_export($arr1);
var_export($arr2);