Welcome Guest, Not a member yet? Register   Sign In
Scope of $data problems
#2

[eluser]PhilTem[/eluser]
There's a difference in

Code:
$data
// and
$this->data

which you seem to not be totally clear about.

If you want to pass data between methods you either pass them as arguments or as class-attributes.


Messages In This Thread
Scope of $data problems - by El Forum - 06-22-2012, 07:06 AM
Scope of $data problems - by El Forum - 06-22-2012, 07:13 AM
Scope of $data problems - by El Forum - 06-22-2012, 07:37 AM
Scope of $data problems - by El Forum - 06-22-2012, 07:46 AM
Scope of $data problems - by El Forum - 06-22-2012, 07:51 AM
Scope of $data problems - by El Forum - 06-22-2012, 09:14 AM
Scope of $data problems - by El Forum - 06-22-2012, 10:14 AM
Scope of $data problems - by El Forum - 06-22-2012, 10:30 AM



Theme © iAndrew 2016 - Forum software by © MyBB