본문 바로가기
반응형

php16

[phpDocumentor]@todo 원문 https://manual.phpdoc.org/HTMLSmartyConverter/PHP/phpDocumentor/tutorial_tags.todo.pkg.html @todo @todo Document changes that will be made in the future Gregory Beaver Copyright 2002, Gregory Beaver (phpDocumentor 1.0+) @todo information string [unspecified format] DescriptionUse @todo to document planned changes to an element that have not been implem manual.phpdoc.org @todo 향후 발생할 변경 사항을 문서.. 2023. 12. 6.
[phpDocumentor]@version 원문 https://manual.phpdoc.org/HTMLSmartyConverter/PHP/phpDocumentor/tutorial_tags.version.pkg.html @version @version Version of current element Gregory Beaver Copyright 2002, Gregory Beaver (phpDocumentor 0.1+) @version versionstring [unspecified format] DescriptionDocuments the version of any element, including a page-level block NEW v1.2 - @version is now inhe manual.phpdoc.org @version 설명 페이지 .. 2023. 12. 6.
[phpDocumentor]@abstract 원문 https://manual.phpdoc.org/HTMLSmartyConverter/PHP/phpDocumentor/tutorial_tags.abstract.pkg.html @abstract @abstract Document an abstract class or method Gregory Beaver Chuck Burgess Copyright 2002, Gregory Beaver (phpDocumentor 1.1+) @abstract DescriptionUse the @abstract tag to declare a class as abstract, as well as for declaring what methods must be redefin manual.phpdoc.org @abstact phpDo.. 2023. 12. 6.
함수 모음 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.. 2023. 6. 29.
JSON 결과 나오지 않을 때 json_last_error() 확인 https://www.php.net/manual/en/function.json-last-error.php PHP: json_last_error - Manual use this code with mb_convert_encoding, you can json_encode some corrupt UTF-8 chars function safe_json_encode($value, $options = 0, $depth = 512) { $encoded = json_encode($value, $options, $depth); if ($encoded === false && $val www.php.net json_last_error_msg() 확인 https://www.php.net/m.. 2022. 8. 31.
usable_email : 사용가능한 이메일인지 확인 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; } } 2022. 8. 21.
반응형