[ create a new paste ] login | about

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

PHP, pasted on May 7:
1
2
3
4
5
6
7
8
9
10
<?php
define('TEST','value');
class aa {
function a($b = TEST) {
    echo $b;
}
}
$aa = new aa();
$aa->a('c');
$aa->a();


Output:
1
cvalue


Create a new paste based on this one


Comments: