Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $argString = trim(substr($_SERVER['PATH_INFO'], strripos($_SERVER['PATH_INFO'],'-')+strlen('-')), '/');
- $argArray = explode('/', $argString);
- if($argArray[0]) {
- for ($i = 0; $i < count($argArray); $i += 2) {
- ${$argArray[$i]} = $argArray[$i + 1];
- }
- }
- ?>
Add Comment
Please, Sign In to add comment