|
update : 2015.11.03
php.shukuma.com검색:
|
ReflectionProperty::__construct(PHP 5) ReflectionProperty::__construct — Construct a ReflectionProperty object 설명
Warning
이 함수는 현재 문서화 되어있지 않습니다; 인수 목록만을 제공합니다. 인수
반환값값을 반환하지 않습니다. 오류/예외Trying to get or set private or protected class property's values will result in an exception being thrown. 예제
Example #1 ReflectionProperty::__construct() example
<?php위 예제의 출력 예시:
===> The public property 'length' (which was declared at compile-time)
having the modifiers array (
0 => 'public',
)
---> Value is: int(5)
---> Setting value to 10, new value is: int(10)
object(String)#2 (1) {
["length"]=>
int(10)
}
Example #2 Getting value from private and protected properties using ReflectionProperty class
<?php위 예제의 출력 예시: int(2) int(3) |