title: PHP / OOP Performance - Methods vs. Array
body: <p>Using Zend Framework or any other framework alike on a large project (around 2 milion users per day) where efficiency is a major problem, I would like to know which of the following methods is more optim from performance point of view whenever you need to access, for example, data of <strong>$_POST</strong> Global Variable.</p>
  
  <p>Is better calling multiple chainable methods or call them once, save into a variable and then just specifying required key ?</p>
  
  <h1>Method 1</h1>
  
  <pre><code>echo $this-&gt;getRequest()-&gt;getParam('key1') . 
  $this-&gt;getRequest()-&gt;getParam('key2');
  </code></pre>
  
  <h1>Method 2</h1>
  
  <pre><code>$post = $this-&gt;getRequest()-&gt;getPost();
  echo $post['key1] . $post['key2'];
  </code></pre>
  
  <p>Saying that for multiple keys, like at least 5 or more.</p>