PHP: getting dynamic variables outside of a function?

Phil

New member
function hello() { $a='b'; $b='cheese'; }
hello(); echo $$a;

I need the above to output 'cheese', how can I set $$a to be used outside the function?

Thanks!
 
Back
Top