SoFunction
Updated on 2025-03-10

Simple method to get the value of '/' parameter

By outputting $GLOBALS, you can see that the parameters after '/' are all present in $_SERVER['PATH_INFO'];

Declare an array to get the parameters we pass after '/'

$arr = explode('/', $_SERVER['PATH_INFO']);

//print_r($arr) View details

The simple way to get the value of the '/' parameter in the above php is all the content I share with you. I hope you can give you a reference and I hope you support me more.