downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

ReflectionClass::hasConstant> <ReflectionClass::getStaticProperties
Last updated: Fri, 24 Sep 2010

view this page in

ReflectionClass::getStaticPropertyValue

(PHP 5 >= 5.1.0)

ReflectionClass::getStaticPropertyValueGets static property value

Description

public mixed ReflectionClass::getStaticPropertyValue ( string $name [, string $default ] )

Gets the static property values.

Warning

This function is currently not documented; only its argument list is available.

Parameters

name

default

Return Values

See Also



add a note add a note User Contributed Notes
ReflectionClass::getStaticPropertyValue
Mauro Gabriel Titimoli
21-Jan-2010 09:05
If you want to change a static property of a variable class...

PHP 5.2
<?php
$reflection
= new ReflectionClass($className);
$staticPropertyReference = & $reflection->getStaticPropertyValue($staticPropertyName);

$staticPropertyReference = 'new value';
?>

PHP 5.3
<?php
$className
::$$classProperty
?>

 
show source | credits | sitemap | contact | advertising | mirror sites