title: How to convert array in following format
body: <p>I am having following multidimensional array. I want to convert this array in new array form as given in array 2</p>
  
  <p>Array-1 </p>
  
  <p>Array
  (</p>
  
  <pre><code>[0] =&gt; Array
      (
          [0] =&gt; PRpriyer
          [1] =&gt; job1232
      )
  
  [1] =&gt; Array
      (
          [0] =&gt; PRpriyer
          [1] =&gt; job1234
      )
  
  [2] =&gt; Array
      (
          [0] =&gt; PRpriyer
          [1] =&gt; job1235
      )
  
  [3] =&gt; Array
      (
          [0] =&gt; PRpriyer
          [1] =&gt; job1236
      )
  
  [4] =&gt; Array
      (
          [0] =&gt; JSjais
          [1] =&gt; job1232
      )
  
  [5] =&gt; Array
      (
          [0] =&gt; JSjais
          [1] =&gt; job1234
      )
  </code></pre>
  
  <p>)</p>
  
  <p>I want new array from this format, like this: 
  Array-2</p>
  
  <p>Array
  (</p>
  
  <pre><code>[0] =&gt; Array
      (
          [0] =&gt; PRpriyer
          [1] =&gt; job1232 | job1234 | job1235 | job1236
      )
  
  [1] =&gt; Array
      (
          [0] =&gt; JSjais
          [1] =&gt; job1232 | job1234
      )
  </code></pre>
  
  <p>)</p>
  
  <p>How to convert? Please help</p>