I tried to get the parameters h1 and h2 from the following url. However, when I used the code to get the values from the $_GET['params'], the print_r displayed only h2. How will I get all values "h1 and h2" ?
https: //localhost/mysite.com/mypage/index/?params=h1¶ms=h2
The code I tried to use for getting the parameters.
if(!empty($_GET['params'])){
foreach ($_GET as $params){
print_r($param);
}