Ver original$foo = arrray('a', 'b');$bar = array(); foreach ($foo as $v) { $bar []= "'$v'";} echo join('|', $bar);