I have a function skipCopy:
public function skipCopy($skipcopy){
$skipcopy1 = $skipcopy;
}
Now I wish to use the value in $skipcopy1 in the copy() function with structure as belows:
protected function copy($id, $srcip, $srcusername, $srcpassword, $tgtip, $tgtusername, $tgtpassword, $publish) {
//use $skipcopy1 here. Do this without passing the value as parameter. as all the parameters in the copy function are mandatory.
}
How can I achieve this.
Both the functions are of same PHP class.