It it possible to run a function that simply declares a group of variables based on the supplied argument?
for exaple:
<?
function test ($var) {
$uppercase = strtoupper ($var);
$uppercase_first = ucfirst ($var);
$reverse = strrev ($var);
}
test ('hello');
?>
now I could do
echo "$uppercase, $uppercase, $reverse";
and get: HELLO, Hello, olleh
I realize the above code does not work but what is the best way to achieve this idea?