title: How get data as array from DB to array variable in PHP
body: <p>In database postgresql i have field as INTEGER[]. In there i have for example data like this: {2,3,55,122} When i take this data from DB </p>
  
  <pre><code>$rs = getData();
  $abc = $rs['raw'];
  var_dump($abc);
  </code></pre>
  
  <p>output is</p>
  
  <pre><code>array(1) {
    [0]=&gt;
    string(18) "{2,3,55,122}"
  }
  </code></pre>
  
  <p>but i need data as array like this:</p>
  
  <pre><code>array(3) {
    [0]=&gt;
    string(2) "2"
    [1]=&gt;
    string(2) "3"
    [2]=&gt;
    string(2) "55"
    [3]=&gt;
    string(2) "122"
  }
  </code></pre>
  
  <p>How can i do it from database layer or php. 
  Is one way use trim and explode only ?</p>
  
  <p>up
  getData function in ZEND</p>
  
  <pre><code>private function getData(){
  $select = $this-&gt;objDB-&gt;select()
  -&gt;from(array('tb' =&gt; 'table'), array('raw',))
  -&gt;where('id = 10');
  return $this-&gt;select($select,true);
  }
  </code></pre>