Skip to content

Instantly share code, notes, and snippets.

@gr4y
Created June 13, 2011 09:38
Show Gist options
  • Select an option

  • Save gr4y/1022530 to your computer and use it in GitHub Desktop.

Select an option

Save gr4y/1022530 to your computer and use it in GitHub Desktop.
A piece of code I'm not very proud of.
$uri = server::get('request_uri');
$pos = stripos ( $uri, '/' );
$len = strlen ( $uri );
$arr = explode( '/', trim( substr( $uri, $pos + 1, $len ) ) );
a::show($arr);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment