[ create a new paste ] login | about

Link: http://codepad.org/asroCEyQ    [ raw code | output | fork ]

martin@mustbebuilt.co.uk - PHP, pasted on Jun 25:
1
2
3
4
5
6
7
<?php 
$myvar4 = 15;
echo "I won £{$myvar4}<br>"; // outputs I won £15
echo 'I won £{$myvar4} - single quotes variable NOT substituted<br>';
print "I won £{$myvar4}<br>"; // outputs I won £15
print 'I won £{$myvar4} - single quotes variable NOT substituted<br>';
?>


Output:
1
I won £15<br>I won £{$myvar4} - single quotes variable NOT substituted<br>I won £15<br>I won £{$myvar4} - single quotes variable NOT substituted<br>


Create a new paste based on this one


Comments: