How to make a dynamic variable

JayZ

New Member
\[code\]<?php class test{ function foo(){ echo $this->abc; } } $test = new test; $test->abc = 'abc';?>\[/code\]Remeber that i don't declare the variable abc, but i want to set $abc to 'abc'. How to do thisSorry because this is a dummy question
 
Back
Top