1. <?php
  2. $i = [1,2,3,4,5];
  3. $resalt = array_slice($i,1,3);
  4. var_dump($resalt);
  5. ?>