How to give object a name in php
<p>I have a question about an object in php, how can i give it a name?</p>

<p>When i do the following: </p>

<pre><code>$arUserStuff =  array ('name' =&gt; 'username', 'email' =&gt; 'test@test.com');

$object = (object) $arUserStuff;

print_r($object);
</code></pre>

<p>the print function returns me the following :</p>

<pre><code>stdClass Object ( [name] =&gt; username [email] =&gt; test@test.com )
</code></pre>

<p>How can i change std class object in lets say's User Object ?</p>

<p>Really can't find out!</p>

<p>Thanks!</p>
