I want to assign the value of $Id from firstFunction to the variable $temp in secondFunction.
public function firstFunction()
{
$Id = $_POST['quizID_click'];
}
public function secondFunction()
{
$temp = ------;
}
Please let me know how to access $Id in secondFunction