Advertisement
siristru

Access protected values in php array

Sep 23rd, 2021
840
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.19 KB | None | 0 0
  1. $reflector = new \ReflectionClass($result);
  2.                 $classProperty = $reflector->getProperty('elements');
  3.                 $classProperty->setAccessible(true);
  4.                 $data = $classProperty->getValue($result);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement