title: How to handle passing data around internally within the app, in an PHP application?
body: <p>So if I need to pass data around the application internally is there nice predictable way to pass it around.  </p>
  
  <p>I want to be able to look at a function and know whats in the collection that is getting passed into the function.</p>
  
  <p>An array is an unpredictable data structure, so you never know what you're getting.</p>
  
  <p>I feel like it's better to have an object defined with named properties and pass that around the application instead of an array, because that way theres SOME sort of a definition available. </p>
  
  <p>The issue with that is that there will just be an bunch of objects accumulating in some folder somewhere.</p>
  
  <p>Was wondering anyone's opinion on this, and any other alternatives?</p>