Open In App

PHP | ReflectionProperty isStatic() Function

Last Updated : 30 Dec, 2019
Comments
Improve
Suggest changes
17 Likes
Like
Report
The ReflectionProperty::isStatic() function is an inbuilt function in PHP which is used to return TRUE if the specified property is static, otherwise returns FALSE. Syntax:
bool ReflectionProperty::isStatic( void )
Parameters: This function does not accept any parameter. Return Value: This function returns TRUE if the specified property is static, otherwise returns FALSE. Below programs illustrates the ReflectionProperty::isStatic() function in PHP: Program 1:
Output:
bool(false)
bool(true)
Program 2:
Output:
bool(false)
bool(false)
bool(true)
Reference: https://secure.php.net/manual/en/reflectionproperty.isstatic.php

Next Article

Similar Reads