can anyone help me on how to use a variable oution of a function.

for example

i have a variable name $none outside of a function and i want to use that variable inside that function, it returns and empty string when i tried it.