Joined February 2013
·
Posted to
Using "switch" instead of "else if" for better performance
over 1 year
ago
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
Charity
Fork and commit to someone's open source project in need
Nephila Komaci
Have at least one original repos where PHP is the dominant language
Walrus
The walrus is no stranger to variety. Use at least 4 different languages throughout all your repos
Forked
Have a project valued enough to be forked by someone else
Mongoose
Have at least one original repo where Ruby is the dominant language
What about a 'fancy hack' like this (didn't test if it works):
var element = rampus || document.getElementById('rampus')