メソッドの引数に基づいてプロパティを作成しようとしています。例えば:
class Test{
public function newProperty($prop1,$prop2){
//I want to create $this->argu1 and $this->argu2 after calling newProperty method.
}
}
$test=new Test();
$test->newProperty('argu1','argu2')
これは可能ですか?助けてくれてありがとう。