class Person { public static $count = 0; } $property = new ReflectionProperty('Person', 'count'); if ($property->isStatic()) { echo "The property is static"; } else { echo "The property is not static"; }In this example, we create a new instance of the ReflectionProperty class and pass the name of the class and the name of the property as arguments to its constructor. We then call the isStatic method on the property object to check whether it is static or not. The package library for this functionality is the PHP Reflection extension, which is included in the core PHP distribution.