php q about quotes ' "
php q about quotes ' "
Out of context: Reply #3
- Started
- Last post
- 5 Responses
- unlx0
Double quotes when using variables, single quotes when not, oui? If you need to parse any $variables in your string, double quotes. If the text is literal, there's no discernible difference. Non?
$Text = "this text here";
echo "$Text"; // prints this text here
echo '$Text'; // prints $Text.Or am I missing the crux of the question?
_
- u did understand my question :D
to - this should be echo $text;maximillion_
- u did understand my question :D