fork download
  1. <?php
  2. $url = explode( '/', trim( '/pagina/id/1/' , '/' ) );
  3. print_r( $url );
  4. // your code goes here
Success #stdin #stdout 0.02s 52432KB
stdin
Standard input is empty
stdout
Array
(
    [0] => pagina
    [1] => id
    [2] => 1
)