<?php $url = explode( '/', trim( '/pagina/id/1/' , '/' ) ); print_r( $url );// your code goes here
Standard input is empty
Array ( [0] => pagina [1] => id [2] => 1 )
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!