[ create a new paste ] login | about

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

PHP, pasted on Dec 7:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php

class test {

    function ech()
    {
       $a = func_get_args();
        for ($t = 0; $t < count($a); $t++)
        {
            echo $a[$t] . "\n";
        }
    }

}

$test = new test;
$test->ech('arg 3','arg 2','arg 3');

?>


Output:
1
2
3
arg 3
arg 2
arg 3


Create a new paste based on this one


Comments: