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
- PYTHON
- laravel 테스트
- jp:a
- ubuntu
- 설치
- curl_multi_init
- OpenAI GPT
- reflectionclass
- php
- fromArray
- call_user_func
- WSL2
- 명령어
- array_combine
- 설정
- eloquent
- wsl
- uniqid
- facades
- 비동기
- eclipse
- Laravel
- createfromformat
- laravel 12
- ob_get_contents
- privatechannel
- laravel 11
- flask
- mysql
- swagger
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
글 보관함
