title: What fundamental objects are missing in Object Oriented PHP?
body: <p>I've been coding with PHP for a while, and I've been relatively irritated at the inconsistencies in the procedural functions (especially Strings and Arrays).</p>
  
  <p>With the support for objects, I've been wishing that PHP had a native implementation of Arrays and Strings as objects so that I could write code like:</p>
  
  <pre><code>$arr = new Array('foo', 'bar');
  $item = $arr-&gt;pop();
  </code></pre>
  
  <p>Making an Array-like object isn't overly difficult, however, there's a significant performance hit. All it would end up being is a wrapper for the array constructs anyway.</p>
  
  <p>Are there <strong><em>other</em></strong> core objects that PHP should have for Object Oriented PHP?</p>
  
  <p>EDIT to add:</p>
  
  <p>This is <strong><em>NOT</em></strong> about how you can use arrays as objects; in fact, I specifically do <strong>not</strong> want the discussion of arrays in the answer, as that's not what the question is about. I used arrays as an example, and it seems no one read the question. I am interested in <strong>other</strong> classes/objects that should exist natively in core PHP.</p>