git-svn-id: http://xe-core.googlecode.com/svn/trunk@750 201d5d3c-b55e-5fd7-737f-ddc643e51545

This commit is contained in:
zero 2007-03-29 02:28:36 +00:00
parent 3ffcefd6fb
commit f7a361bd10
12 changed files with 65 additions and 24 deletions

View file

@ -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;
}
?>