siristru

Access protected values in php array

Sep 23rd, 2021
590
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $reflector = new \ReflectionClass($result);
  2.                 $classProperty = $reflector->getProperty('elements');
  3.                 $classProperty->setAccessible(true);
  4.                 $data = $classProperty->getValue($result);
RAW Paste Data