Регистр файлов

This commit is contained in:
origami11 2017-02-16 10:14:36 +03:00
parent 4fd0187ea6
commit c8958cbee0
83 changed files with 25 additions and 53 deletions

24
src/Numbers.php Normal file
View file

@ -0,0 +1,24 @@
<?php
class Numbers
{
static function roman($i)
{
return 0;
}
static function decimal($i)
{
return $i;
}
static function prefix($prefix, array $array, $key = false)
{
$result = array();
for ($i = 0; $i < count($array); $i++) {
$result [] = call_user_func($prefix, $i + 1) . '. ' . $array[$i];
}
return $result;
}
}