title: create array with Foreach php
body: <p>How can I create array like this using foreach </p>
  
  <pre><code>$data = array(
      (object)array(
          'oV' =&gt; 'myfirstvalue',
          'oT' =&gt; 'myfirsttext',
      ),
      (object)array(
          'oV' =&gt; 'mysecondvalue',
          'oT' =&gt; 'mysecondtext',
      ),
  );
  </code></pre>