ReflectionClass::getProperty
クラスのプロパティを表す ReflectionProperty を取得する
&reftitle.description;
public ReflectionPropertyReflectionClass::getProperty
stringname
クラスのプロパティを表す ReflectionProperty を取得します。
&reftitle.parameters;
name
プロパティの名前。
&reftitle.returnvalues;
ReflectionProperty を返します。
&reftitle.examples;
ReflectionClass::getProperty の基本的な使用例
getProperty('name');
var_dump($property);
?>
]]>
&example.outputs;
string(4) "name"
["class"]=>
string(15) "ReflectionClass"
}
]]>
&reftitle.seealso;
ReflectionClass::getProperties