What is the point of the PHP "resource" type?
<p>I'm just trying to deepen my understanding of the resource type, and I'm not really sure why it was invented in the first place, when surely just a standard object would suffice.</p>

<p>From my experience, architecturally, you only ever send resources around as dependencies for other functions in the same operation in which you're executing, but you will never send that resource to a separate part of your program.</p>

<p>Am I missing something or is it just an ugly piece of PHP baggage?</p>
