<?php function test() { static $a = 0, $b = 15; $a++; $b++; return $a; } $rf = new ReflectionFunction('test'); // result - Array ( [a] => 0 [b] => 15 ) var_dump( $rf->getStaticVariables() );
You have javascript disabled. You will not be able to edit any code.