class department {
function get($department,$info) {
//do something
}
}
class employment {
function get($user_id,$info) {
//do something
}
}
$dept = new department();
$emp = new employment();
$dept->get($emp->get($_SESSION['i'],'dept'), "open");
I am trying to get the output variable from the $emp->get() function and put it into the $dept->get() function, but the output from $emp->get() is not processed by
$dept->get().
How should I pass the value returned from $emp->get() to $dept->get()?
var_dump($emp->get($_SESSION['i'],'dept'))and check if it returns something..var_dump($emp->get($_SESSION['i'],'dept')).MANbool(true),MANis the value i want to pass to the$dept->get();functionecho $emp->get($_SESSION['i'],'dept');gives meMAN