Worth noting that it will not return private parameters of parent class...
so it works exactly as get_class_vars or get_object_vars
ReflectionClass::getDefaultProperties
(PHP 5)
ReflectionClass::getDefaultProperties — دریافت خاصیتهای پیشفرض
Description
public array ReflectionClass::getDefaultProperties
( void
)
دریافت خاصیتهای پیشفرض کلاس.
Warning
This function is currently not documented; only its argument list is available.
Parameters
This function has no parameters.
Return Values
array خاصیتهای پیشفرض.
runaurufu AT gmail.com ¶
1 year ago
captainjester at hotmail dot com ¶
3 years ago
This will return all properties in a class and any parent classes. The array will have keys set to the property names and empty values.
