Source Code:
(back to article)
<?php $num = 10; // This is a single-quoted string $str = 'The value of $num is $num'; // This is a double-quoted string $str = "The value of $num is $num"; // Outputs: The value of $num is 10 echo $str;
Result:
Report an issue