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

spaces25 님의 블로그

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

spaces25 님의 블로그

검색하기 폼
  • 분류 전체보기 (68) N
    • 여행 (2)
    • 이것저것 (26) N
    • 배움 (40) N
      • PHP (34) N
      • JAVA (3)
      • PYTHON (3)
  • 방명록

reflectionclass (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
  • 비동기
  • 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
more
«   2025/08   »
일 월 화 수 목 금 토
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

티스토리툴바