Is there anyway to used local variables in a diffrent finction than its mentioned ?
Yep.
Let's say you have this function:
function chair(%variable) {
%variable += 5;
table(%variable);
}
So you can call the chair function with a number, and chair will add five to the number then call table with the number, like this.
function table(%variable) {
echo(%variable);
}
This would echo the variable plus five. Also note that just because I named the variable %variable doesn't mean it has to be that. You can even change it in the table function, it doesn't matter.