0
Has a native PHP function that converts a Querystring to Array
Example: page=index&produto=115&usuario=2
Array(
[0] => 'page=index',
[1] => 'produto=115',
[2] => 'usuario=2'
)
I know I can use explode('&' QueryString)
, but I remember it had a function that already identified the &
as a separator for the array.
Thank you.
PHP does this natively when you do a GET or POST, and you can fetch the values for the keys with
$_GET['page']
for example, isn’t that what you’re looking for? or else you can explain better where this querystring comes from?– Sergio