i have two functions. In function two it has $id=9. how do i get function one to echo $id?
how do i adjust the below example to accomplish this?
$newdb = new Database();
class Database
{
function one()
{
$newdb->two();
echo $id;
}
function two()
{
$id = 9
return $id;
}
}