title: Make array value unique
body: <p>this is the dynamic array. I'm trying to remove the repeated value and have only merged one. e.g. need to remove <code>[0] =&gt; 1/2/48 &amp; [1] =&gt; 1/2/48/56</code> and only have <code>[2] =&gt; 1/2/48/56/58</code> .</p>
  
  <pre><code>Array(
      [0] =&gt; 1/2/48
      [1] =&gt; 1/2/48/56
      [2] =&gt; 1/2/48/56/58
      [3] =&gt; 1/2/245
      [4] =&gt; 1/2/245/246
      [5] =&gt; 1/2/265
  )
  </code></pre>
  
  <p>So the array should look like</p>
  
  <pre><code>Array(
      [0] =&gt; 1/2/48/56/58
      [1] =&gt; 1/2/245/246
      [2] =&gt; 1/2/265
  )
  </code></pre>