-
Notifications
You must be signed in to change notification settings - Fork 3
Get true params function
Andre Sieverding edited this page Aug 3, 2014
·
4 revisions
(EasyRouter >= 0.3.0)
EasyRouter\main::get_true_params( void )Returns an array with normal GET params.
<?php
$true_get_params = EasyRouter\main::get_true_params();
?>http://www.yourwebsite.com/param1/param2?id=5&name=John will generate this:
$true_get_params['id'] = '5'
$true_get_params['name'] = 'John'
http://www.yourwebsite.com/param1?id=5&name=John&page=followers will generate this:
$true_get_params['id'] = '5'
$true_get_params['name'] = 'John'
$true_get_params['page'] = 'followers'