How to use PHP-Parser to get the global variables name and change it
问题 I want to use PHP-Parser library to get the global method ( _POST, _GET, _REQUEST ) to get values in PHP. I'm using PHP-Parser where I want to check the node name if it equal to ( _POST, _GET, _REQUEST ). I'm still beginner in PHP-Parser and not figure out how to get these global variables. For example, if I have the following source code: code: <?php $firstname = $_POST['firstname]; The PHP-parser I used until now looks like this: <?php require_once('vendor/autoload.php'); use PhpParser