[ create a new paste ] login | about

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

PHP, pasted on May 27:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php
$test = 'Variable';
echo 'Double quotes: ';
echo "$test";
echo '
';
echo 'Single quotes: ';
echo '$test';
echo '
';

echo 'Variable in variable definition: ';
$anotherVar = '$test'."$test";
echo $anotherVar;
?>


Output:
1
2
3
Double quotes: Variable
Single quotes: $test
Variable in variable definition: $testVariable


Create a new paste based on this one


Comments: