This may be a simple question but it's difficult to Google it. I need to take an existing variable and put double quotes around it.
So I have:
$foo = "bar";
echo $foo;
bar
I need:
"bar"
I have tried several variations of something like this:
$foo = '"' . $foo . '"'; (those are single quotes around double quotes in this example)
But everything I try seems to either throw a syntax type error or not do what I need.
Any ideas?
Thank You