What are the limitations of returning multiple variables from a PHP function without using arrays?

When returning multiple variables from a PHP function without using arrays, the main limitation is that you can only return one value. To work around this limitation, you can use PHP's `list()` function to assign multiple variables in one line by returning a string with values separated by a delimiter and then exploding it to extract individual values.

function returnMultipleVariables() {
    $var1 = 'value1';
    $var2 = 'value2';
    return $var1 . '|' . $var2;
}

list($result1, $result2) = explode('|', returnMultipleVariables());

echo $result1; // Output: value1
echo $result2; // Output: value2