본문 바로가기 메뉴 바로가기

spaces25 님의 블로그

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

spaces25 님의 블로그

검색하기 폼
  • 분류 전체보기 (59) N
    • 여행 (2)
    • 이것저것 (24)
    • 배움 (33) N
      • PHP (27) N
      • JAVA (3)
      • PYTHON (3)
  • 방명록

2025/07/04 (1)
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
이전 1 다음
이전 다음
반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • PYTHON
  • laravel 테스트
  • 설치
  • 근로·자녀 장려금
  • swagger
  • php
  • createfromformat
  • jp:a
  • privatechannel
  • 아이쿠카
  • laravel 11
  • researcher
  • facades
  • laravel 12
  • strict_types
  • Reverb
  • ubuntu
  • WSL2
  • Laravel
  • #collect
  • ob_get_contents
  • mysql
  • Gradel
  • flask
  • reflectionclass
  • #php
  • 명령어
  • wsl
  • 비동기
  • 설정
more
«   2025/07   »
일 월 화 수 목 금 토
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
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바