Du kannst über eine PHP Funktion auch Variablen verändern, ohne das die Funktion etwas zurückgeben muss - Beispiel:
PHP-Code:
$bla = 'text';
function x($string) {
$string = 'hallo';
}
function y(&$string) {
$string = 'hallo';
}
echo x($bla); // text
echo y($bla); // hallo