title: Multiple array to PHP Object
body: <p>I'm struggeling for a few ours to fugure out how to do this.
  I have an array like this:</p>
  
  <pre><code>array (size=2)
    0 =&gt; 
      array (size=14)
        'NR COMANDA' =&gt; string '251729' (length=6)
        'DESCRIERE' =&gt; string 'SO_DK35' (length=7)
        'COD ARTICOL' =&gt; string '77A.02.03' (length=9)
        'PACK SSCC' =&gt; string '012345000168970576' (length=18)
        'PACK GREUTATE' =&gt; string '12.04' (length=5)
        'PACK TARE' =&gt; string '0.49' (length=4)
        'PACK GROSS' =&gt; string '12.53' (length=5)
        'PACK NOMINAL' =&gt; string '12.04' (length=5)
        'LOT' =&gt; string '4150' (length=4)
        'DATA EXPIRARE' =&gt; string '8/30/2014' (length=9)
        'DATA PRODUCTIE' =&gt; string '5/30/2014' (length=9)
        'PALET SSCC' =&gt; string '212345000011125386' (length=18)
        'PALET TARE' =&gt; string '27' (length=2)
        'DATA FIFO' =&gt; string '6/30/2014' (length=9)
    1 =&gt; 
      array (size=14)
        .....
  </code></pre>
  
  <p>and I need to have each value in an PHP Object like this:</p>
  
  <pre><code>    object(EntriesList)[5]
    public 'id' =&gt; null    
    public 'nr_comanda' =&gt; null
    public 'descriere' =&gt; null
    public 'cod_articol' =&gt; null
    public 'pack_sscc' =&gt; null
    public 'pack_greutate' =&gt; null
    public 'pack_tare' =&gt; null
    public 'pack_gross' =&gt; null
    public 'pack_nominal' =&gt; null
    public 'lot' =&gt; null
    public 'data_expirare' =&gt; null
    public 'data_productie' =&gt; null
    public 'palet_sscc' =&gt; null
    public 'palet_tare' =&gt; null
    public 'data_fifo' =&gt; null
  </code></pre>
  
  <p>Could you please help me with the php code? Thanks in advance.</p>