<?php
header("Content-Type: text/plain; charset=utf-8"); ?>
<?php
$text = 'В российском сегменте очень';
$circleRadius = $len / 2.5;
foreach ($text as $v) {
$newArray[] = preg_split("//u", $v, null, PREG_SPLIT_NO_EMPTY
);
}
foreach ($newArray as $v) {
foreach ($v as $letter) {
$txt[] = $letter;
}
}
for ($i = 0; $i <= $len * 4; $i++) {
for ($k = 0; $k <= $len * 4; $k++) {
$probels[$i][$k] = ' ';
}
}
$c = $corner;
$i = 0;
foreach ($txt as $letter) {
$x = (round(cos($c * M_PI
/ 180) * $circleRadius) + $circleRadius) * 2; $y = round(sin($c * M_PI
/ 180) * $circleRadius) + $circleRadius; $probels[$y][$x] = $letter;
$c += $corner;
}
foreach ($probels as $v) {
foreach ($v as $val) {
echo $val;
}
echo "\n";
}
PD9waHAKaGVhZGVyKCJDb250ZW50LVR5cGU6IHRleHQvcGxhaW47IGNoYXJzZXQ9dXRmLTgiKTsKPz4gCjw/cGhwCgplcnJvcl9yZXBvcnRpbmcoLTEpOwptYl9pbnRlcm5hbF9lbmNvZGluZygndXRmLTgnKTsKJHRleHQgPSAn0JIg0YDQvtGB0YHQuNC50YHQutC+0Lwg0YHQtdCz0LzQtdC90YLQtSDQvtGH0LXQvdGMJzsKCgoKJGxlbiAgICAgICAgICA9IG1iX3N0cmxlbigkdGV4dCk7CiRjaXJjbGVSYWRpdXMgPSAkbGVuIC8gMi41OwoKJHRleHQgICAgID0gZXhwbG9kZSgnICcsICR0ZXh0KTsKJG5ld0FycmF5ID0gYXJyYXkoKTsKZm9yZWFjaCAoJHRleHQgYXMgJHYpIHsKICAgICRuZXdBcnJheVtdID0gcHJlZ19zcGxpdCgiLy91IiwgJHYsIG51bGwsIFBSRUdfU1BMSVRfTk9fRU1QVFkpOwogICAgCn0KJHR4dCA9IGFycmF5KCk7CmZvcmVhY2ggKCRuZXdBcnJheSBhcyAkdikgewogICAgZm9yZWFjaCAoJHYgYXMgJGxldHRlcikgewogICAgICAgICR0eHRbXSA9ICRsZXR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