Originally posted by Dragonfist07
A function that just contains variables that's all.
That doesn't really make much sense; functions do things with variables, they're not used to store variables.
If you insist,
<?php
function set_a_bunch_of_variables()
{
global $this, $that, $the_other;
$this = 'something';
$that = 'something else';
$the_other = 'again, something else';
}
?>
But you're right - it is stupid. You'd be better off leaving out the function.
<?php
$this = 'something';
$that = 'something else';
$the_other = 'again, something else';
?>