I am trying to echo some part of a string, the string is for example:
"?page=tournament&action=brackets&tournID=2"
I am not using URL so I cannot use $_GET. Only string. I want to get the first and second element after "="
Thus should return
$first = tournament
$second = brackets (should not return &tournID=2)
Or second example
index.php?page=users&action=online
$first = users
$second = online
I have tried using explode without success
$urlArray = explode('=',$user['page']);
it is returning "?page"
Thanks in advance..