For example, I hate typing things like:
$x = mysql_escape_string(stripslashes($_GET['x']));
Is there a way to alias those two functions in init.php or something without writing a separate function that takes one argument and returns that argument with those functions applied to it?
My C/C++ is not very good, but I think this is sort of like #typedef but for functions?
This should do the trick :
Though I don’t recommend coding like this at all.
I’m just answering the question since you said you didn’t want to create any new function and get a ‘#define’-like functionality.