|
|
|
|
<?php $x = 1; print 'This is a single-quote string. This is $x\n'; print "This is a double-quote string. This is $x\n"; print "This is a double-quote string. This is \$x\n"; # With escape char ?> Output: This is a single-quote string. This is $x\n (cut line for clarity) This is a double-quote string. This is 1 This is a double-quote string. This is $x |
How to run the program:
|