[ create a new paste ] login | about

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

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

class MyClass {

        function Func1($a) {
              return $a;
        }
        function Func2() {
              echo $this->Func1($a);
        }
}

$c = new MyClass();

$c->Func1('parametr'); // prints: 1

$c->Func2();


Output:
No errors or program output.


Create a new paste based on this one


Comments: