Not very sure how to word this question but I\'ll give an example.
$string = \'Hey, $name. How are you?\';
When I post this string,
You should be wrapping the string in double quotes (") if you want variables to be expanded:
"
$name = "Alica"; $string = "Hey, $name. How are you?"; // Hey, Alica. How are you?
See the documentation.