<?php
'ко', 'и', 'дзу', 'ми',
'са', 'ку', 'ра', 'да',
'чи', 'а', 'ки', 'ми',
'на', 'го', 'ха', 'ру'
);
//инициализируем пустую строку
$name = "";
for ($i = 1; $i <= 4; $i++) {
$randomText = $letters[$random] ;
echo "Выпало число {$random}, слог {$randomText}\n";
$name=$name.$randomText;
}
echo "------\n";
echo "Советую имя: {$name} - не прогадаешь!\n";
PD9waHAKCmVycm9yX3JlcG9ydGluZygtMSk7CiAKJGxldHRlcnMgPSBhcnJheSgKICAgICfQutC+JywgICAn0LgnLCAgICAn0LTQt9GDJywgICfQvNC4JywKICAgICfRgdCwJywgICAn0LrRgycsICAgJ9GA0LAnLCAgICfQtNCwJywKICAgICfRh9C4JywgICAn0LAnLCAgICAn0LrQuCcsICAgJ9C80LgnLAogICAgJ9C90LAnLCAgICfQs9C+JywgICAn0YXQsCcsICAgJ9GA0YMnCik7CgovL9C40L3QuNGG0LjQsNC70LjQt9C40YDRg9C10Lwg0L/Rg9GB0YLRg9GOINGB0YLRgNC+0LrRgwokbmFtZSA9ICIiOwoKZm9yICgkaSA9IDE7ICRpIDw9IDQ7ICRpKyspIHsKICAgICRyYW5kb20gPSBtdF9yYW5kKDAsIGNvdW50KCRsZXR0ZXJzKSAtIDEpOyAKICAgICRyYW5kb21UZXh0ID0gJGxldHRlcnNbJHJhbmRvbV0gOwogCiAgICBlY2hvICLQktGL0L/QsNC70L4g0YfQuNGB0LvQviB7JHJhbmRvbX0sINGB0LvQvtCzIHskcmFuZG9tVGV4dH1cbiI7CiAgICAkbmFtZT0kbmFtZS4kcmFuZG9tVGV4dDsKfQogCmVjaG8gIi0tLS0tLVxuIjsKZWNobyAi0KHQvtCy0LXRgtGD0Y4g0LjQvNGPOiB7JG5hbWV9IC0g0L3QtSDQv9GA0L7Qs9Cw0LTQsNC10YjRjCFcbiI7