Get back variable - PHP

this is the code in firstpage.php


$test = "hello";
echo "<a href = 'secondpage.php?var = $test'>nextpage</a>";

how can i get back the variable $test’s value in secondpage.php