Skip to content

Get true params function

Andre Sieverding edited this page Aug 3, 2014 · 4 revisions

(EasyRouter >= 0.3.0)

EasyRouter\main::get_true_params( void )

Return values

Returns an array with normal GET params.

Little example with parameters and exceptions:

<?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'

Clone this wiki locally