<?php
$array = array(12, 14, 121, 123); $var = "";
foreach ($array as $item) {
$var .= $item . " ";
}
echo $var . "\n";
$array = array(12, 14, 121, 123, 12, 125, 1200); $var = "";
foreach ($array as $item) {
$var .= $item . " ";
}
echo $var . "\n";
PD9waHAKJGFycmF5ID0gYXJyYXkoMTIsIDE0LCAxMjEsIDEyMyk7CiR2YXIgPSAiIjsKZm9yZWFjaCAoJGFycmF5IGFzICRpdGVtKSB7CiAgICAkdmFyIC49ICRpdGVtIC4gIiAiOwp9CmVjaG8gJHZhciAuICJcbiI7CgokYXJyYXkgPSBhcnJheSgxMiwgMTQsIDEyMSwgMTIzLCAxMiwgMTI1LCAxMjAwKTsKJHZhciA9ICIiOwpmb3JlYWNoICgkYXJyYXkgYXMgJGl0ZW0pIHsKICAgICR2YXIgLj0gJGl0ZW0gLiAiICI7Cn0KZWNobyAkdmFyIC4gIlxuIjsKCmVjaG8gaW1wbG9kZSgkYXJyYXksICIsICIpOw==