title: Get data from array to array in magento 2
body: <p>This is my array</p>
  
  <pre><code>array(5) {
    [0]=&gt;
    string(2) "10"
    [1]=&gt;
    string(2) "22"
    [2]=&gt;
    string(2) "25"
    [3]=&gt;
    string(2) "37"
    [4]=&gt;
    string(2) "38"
  }
  </code></pre>
  
  <p>How to get it to array like this</p>
  
  <pre><code>array(1) {
    [0]=&gt;
    string(2) "10"
      }
  array(2) {
    [0]=&gt;
    string(2) "22"
      }
  array(3) {
    [0]=&gt;
    string(2) "25"
      }
  array(4) {
    [0]=&gt;
    string(2) "37"
      }
  array(5) {
    [0]=&gt;
    string(2) "38"
  }
  </code></pre>
  
  <p>I'm using this code</p>
  
  <pre><code>$sellerIds = * My Array *
  
  if(is_array($sellerIds)){
      foreach($sellerIds as $key =&gt; $value){
           $sellerIds = $value;
      }
  }
  // do something with $sellerIds
  </code></pre>
  
  <p>But when i var_dump it, it like this </p>
  
  <pre><code>string(2) "10"
  string(2) "22"
  ...
  </code></pre>
  
  <p>Please Help Me ! Thanks All </p>