Created
April 27, 2012 09:01
-
-
Save gin1314/2507615 to your computer and use it in GitHub Desktop.
PHP: codeigniter simulate $_GET parameter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$url = parse_url( $_SERVER['REQUEST_URI'] ); | |
$get = explode('&', $url['query']); | |
foreach ($get as $key => $value) { | |
list($k, $v) = explode('=', $value); | |
$new_get[$k] = $v; | |
} | |
var_dump($new_get['callback']); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment