mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@750 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
3ffcefd6fb
commit
f7a361bd10
12 changed files with 65 additions and 24 deletions
|
|
@ -177,4 +177,14 @@
|
|||
debugPrint($output);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief 주어진 숫자를 주어진 크기로 recursive하게 잘라줌
|
||||
* 디렉토리 생성을 위해서 쓰임...
|
||||
**/
|
||||
function getNumberingPath($no, $size=3) {
|
||||
$mod = pow(10,$size);
|
||||
$output = sprintf('%0'.$size.'d/', $no%$mod);
|
||||
if($no >= $mod) $output .= getNumberingPath((int)$no/$mod, $size);
|
||||
return $output;
|
||||
}
|
||||
?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue