일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- codeigniter3
- 옵션표
- FCM
- 헬퍼
- 안드로이드
- config
- 후크
- CodeIgniter
- function
- html
- 영카트
- javascript
- jquery
- phpDocumentor
- CI3
- Database
- 웹 프로그래밍
- 그누보드
- ajax
- 설정
- mysql
- rairen
- 함수
- jw player
- 코드이그나이터
- 라이렌
- API
- MSsql
- php
- APK
- Today
- Total
목록function (4)
프로그램 개발서
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..
1. onlyNumber(className) /** * 클래스 명 입력하여 지정가능 */ function onlyNumber(className = 'onlyNumber'){ className = '.' + classname; const onlyNumberEl = document.querySelectorAll(className); onlyNumberEl.forEach(function(el, idx){ el.addEventListener('keydown', function(keyboardEvent){ // 상단 숫자 0 ~ 9 if(keyboardEvent.which >= 48 && keyboardEvent.which = 96 && keyboardEvent.which
1. directory_map(); 코드이그나이터3에서 사용되던 함수로 특정 경로의 폴더와 파일들 목록 함수 얻기용으로 가져다 쓰기 좋아서 유용하게 사용 중 if ( ! function_exists('directory_map') ) { function directory_map($directory_path, $directory_depth = 0, $hidden = false) { if ( $fp = @opendir($directory_path) ) { $file_data = array(); $new_depth = $directory_depth - 1; $directory_path = rtrim($directory_path, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR; wh..

if (!function_exists('usable_email')) { /** * 사용가능 이메일 여부 * * @param string $email * @return bool */ function usable_email($email): string { return (preg_match("/^[_\.0-9a-zA-Z-]+@([0-9a-zA-Z][0-9a-zA-Z-]+\.)+[a-zA-Z]{2,6}$/i", $email) !== false) ? true : false; } }