<?php $array = array('nome'=>'Ribossomo', 'snome'=> 'Silva', 'idade'=> 500); print_r(array_slice($array, 0, 2, true));
Standard input is empty
Array ( [nome] => Ribossomo [snome] => Silva )
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!