Guest User

Untitled

a guest
Jul 11th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. <?php
  2. $argString = trim(substr($_SERVER['PATH_INFO'], strripos($_SERVER['PATH_INFO'],'-')+strlen('-')), '/');
  3. $argArray = explode('/', $argString);
  4. if($argArray[0]) {
  5. for ($i = 0; $i < count($argArray); $i += 2) {
  6. ${$argArray[$i]} = $argArray[$i + 1];
  7. }
  8. }
  9. ?>
Add Comment
Please, Sign In to add comment