How can I pass a value as class private property
<p>is it possible for a class to accept a dynamic value and make it its private variable?</p>

<p>example:</p>

<pre><code>class test{

private $var = $x;

private function fromUser($var){
//code here
}

}
</code></pre>

<p>i want <code>$x</code> to be dynamic like coming from a user input.</p>
