The best way to debug PHP code (assuming you do not have a configured debugger, or if your debugger is not working properly) is with var_dump(). In your case, something like:
var_dump($_SERVER['method_name']);
Also, you can set up a breakpoint that will terminate program execution with die(), AND give you all the variable info that you need:
die(var_dump($_SERVER['method_name']));
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.