[ create a new paste ] login | about

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

PHP, pasted on May 7:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?php
define('TEST','value');
class cc {
    const v = 1;
}

class aa {
function a($b = cc::v) {
    echo $b;
}
}
$aa = new aa();
$aa->a('c');
$aa->a();


Output:
1
c1


Create a new paste based on this one


Comments: