Библиотека для cis, online, cms1
This commit is contained in:
commit
3c2e614d87
269 changed files with 39854 additions and 0 deletions
24
core/numbers.php
Normal file
24
core/numbers.php
Normal 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)
|
||||
{
|
||||
$result = array();
|
||||
for ($i = 0; $i < count($array); $i++) {
|
||||
$result [] = call_user_func($prefix, $i + 1) . '. ' . $array[$i];
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue