Answer the question
In order to leave comments, you need to log in
Printing Variables in Single Quotes
Rhetorical question: Is it possible to output a variable in any way, through single quotes echo ?
something like this: echo'<html> class="$nav" </html>'
options: shielding please do not offer, i.e.echo "<html> class=\" $nav \"</html>"
Answer the question
In order to leave comments, you need to log in
And why is concatenation or double quotes not suitable?
echo "<html>$nav</html>";
echo '<html>' . $nav . '</html>';
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question