How can I refer other objects in php?
<p>I'm very new to Php and I'm from Java. I have a class in Java like this:</p>

<pre><code>class A {
}

class B{
}
</code></pre>

<p>in same package. Inside class <code>A</code> I have defined a datatype of type <code>B</code> like :</p>

<pre><code>   B bType;
</code></pre>

<p>I want the same behavior in php. Is that possible to do so? </p>

<p>And are there any way to "package" my classes in php?</p>

<p>Thanks in advance.</p>
