Created
October 21, 2013 08:33
-
-
Save YuriDan/7080501 to your computer and use it in GitHub Desktop.
Есть метод CFile::FormatSize. Метод принимает два параметра: размер файла в ($size) и округление ($precision). Возвращает текстом размер файла, округленный до последнего целого значения и текстовую подпись размера в байтах, килобайтах и тд с учетом языка, установленного в текущем сайта.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CFile::FormatSize( $size, $precision ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment