일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |
Tags
- CodeIgniter
- 웹 프로그래밍
- Database
- codeigniter3
- FCM
- 안드로이드
- config
- 헬퍼
- javascript
- 영카트
- function
- API
- 라이렌
- CI3
- 옵션표
- jquery
- html
- php
- APK
- phpDocumentor
- 후크
- rairen
- jw player
- 그누보드
- mysql
- 함수
- ajax
- 코드이그나이터
- MSsql
- 설정
Archives
- Today
- Total
목록2025/03 (1)
프로그램 개발서
PHP Byte 단위 표시용 함수
if (!function_exists("formatBytes")) { // PHP 버전별 최적화된 formatBytes 함수 function formatBytes($size, $fromUnit = 'B', $toUnit = null, $precision = 2) { $units = ['B' => 0, 'KB' => 1, 'MB' => 2, 'GB' => 3, 'TB' => 4, 'PB' => 5, 'EB' => 6, 'ZB' => 7, 'YB' => 8]; $fromUnit = strtoupper($fromUnit); $toUnit = $toUnit ? strtoupper($toUnit) : null; if (!isset($units[$f..
PHP
2025. 3. 13. 16:00