title: How to get First 10 Values of array with PHP
body: <p>i have array and i need to print first 10 values of array </p>
  
  <p>MyArray :</p>
  
  <pre><code>    Array
  
          [0] =&gt; Hello
          [1] =&gt; first
          [2] =&gt; nice
          [3] =&gt; loost
          [4] =&gt; emy
          [6] =&gt; rood
          [7] =&gt; 1599
          [8] =&gt; 34345
          [9] =&gt; 1313
          [10] =&gt; 45667
          [11] =&gt; 5678
          [12] =&gt; 35546
          [13] =&gt; 8877
          [14] =&gt; 3434
          [15] =&gt; 56767
          [16] =&gt; 7778
          [17] =&gt; 9987
          [18] =&gt; 8842
          [19] =&gt; 1223
  </code></pre>
  
  <p><strong>array_slice not solve my problem !</strong>
  Thanks for your helps</p>