ReflectionClass ?
✅ 기본 개념ReflectionClass는 특정 클래스의 메서드, 속성, 상속 관계, 인터페이스, 주석(phpdoc) 등을 조사할 수 있습니다.getName(); // User// public 속성 목록 출력$properties = $reflector->getProperties(ReflectionProperty::IS_PUBLIC);foreach ($properties as $property) { echo $property->getName() . "\n";}// 메서드 목록 출력$methods = $reflector->getMethods();foreach ($methods as $method) { echo $method->getName() . "\n";}🔧 주요 메서드들메서드설명getName..
배움/PHP
2025. 7. 4. 12:52
반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- 비동기
- call_user_func
- eclipse
- laravel 11
- flask
- PYTHON
- php
- WSL2
- reflectionclass
- curl_multi_init
- mysql
- facades
- laravel 12
- uniqid
- jp:a
- laravel 테스트
- Laravel
- ubuntu
- 설치
- fromArray
- privatechannel
- eloquent
- wsl
- ob_get_contents
- 설정
- swagger
- createfromformat
- 명령어
- array_combine
- researcher
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함