Joined February 2013
·

Álvaro Carneiro

Montevideo, Uruguay
·
·
·

What about a 'fancy hack' like this (didn't test if it works):

var element = rampus || document.getElementById('rampus')

Not to mention that he is usign return statement in each case

Posted to Get request path in PHP for routing over 1 year ago

This!. <3 u bro.
You can also replace the conditional to this function call: $path = parse_url($path, PHP_URL_PATH); It will remove the query strnig

Achievements
50 Karma
0 Total ProTip Views