Welcome Guest, Not a member yet? Register   Sign In
passing URI based variable and variable inside class
#2

To pass a variable (a property) between methods of a class, you define them before the constructor:

public $var = 'test';

And inside the methods you can access and modify them with $this->var;
Reply


Messages In This Thread
RE: passing URI based variable and variable inside class - by Avenirer - 06-18-2015, 07:15 AM



Theme © iAndrew 2016 - Forum software by © MyBB