Is it possible to change a function or variable defined in a class outside the class, but without using global variables?
this is the class inside include file # 2:
class moo{ function whatever(){ $somestuff = "...."; return $somestuff;
in the main application, this is how the class is used:
include "file1.php"; include "file2.php";
source share