How to I put a variable name in a php string without it reading as a variable?

Rourigh

New member
For example,
<?php
$string = "$string is the name of this string";
?>
But php reads the "$string" Part as an actual sting, not a word. How do I make php recognise it as a word?
I've tried using the html code for $, which is $ but it still doesn't work.
The html code for $ is &#36 ;
 
Back
Top