title: Correct Push Varriable, and get Variable on Controller
body: <p>in controller i use looping foreach for push array in <code>$dataaray</code>, code push array like bellow : </p>
  
  <pre><code>$dataarray=array();
  array_push($dataarray,"{id : ".$idjenis.",JenisPerjal : ".$Jenis.",JmlButuh :".$coba.",JmlTerpasang : ".$coba1.",Sisa : ".$sisa."}");
  }
  $data=array(
      'data'=&gt; $dataarray,
  );
  $this-&gt;load-&gt;view('ExportPdf/exportpdf',$data);
  </code></pre>
  
  <p>i'm assum you understood for variable <code>$idjenis, $jenis, $coba and $coba1</code>.</p>
  
  <p>result on view like bellow : </p>
  
  <pre><code>id : 5,JenisPerjal : Warning Light,JmlButuh :1,JmlTerpasang : 1,Sisa : 0
  id : 7,JenisPerjal : RPPJ,JmlButuh :4,JmlTerpasang : 2,Sisa : 2
  id : 8,JenisPerjal : APILL,JmlButuh :1,JmlTerpasang : 1,Sisa : 0
  id : 10,JenisPerjal : Water Barier,JmlButuh :1,JmlTerpasang : 1,Sisa : 0
  </code></pre>
  
  <p>in view i can't get variable of </p>
  
  <pre><code>$data['id'], 
  $data['JenisPerjal'], 
  $data['JmlButuh'], 
  $data['JmlTerpasang '] 
  $data['Sisa ']
  </code></pre>
  
  <p>result in view i want like this</p>
  
  <pre><code>JenisPerjal   | JmlButuh | JmlTerpasang  | Sisa 
  ===============================================
  Warning Light | 1        | 1             | 0
  RPPJ          | 4        | 2             | 2
  APILL         | 1        | 1             | 0
  Water Barrier | 1        | 1             | 0
  </code></pre>