I'm looking for a way to covert a variable to a string. I thought I could use settype or cast or var_dump but all don't seem to convert the variable name only, so for example:-
$varName = "hello";
//should echo out varName
I cannot see any examples, or google results as a solution, does anyone have any ideas?
Thank you in advance