[ create a new paste ] login | about

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

PHP, pasted on Jan 13:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?
class A{
      public function do_a(){ return 'a_done';}

      public function do_b(){ return 'b_done';}
}

$System = new A;

$method_a = $System->do_a();
$method_b = $System->do_b();

echo 'this was the result of ' . $method_a();
echo 'this was the result of ' . $method_b();


Output:
1
2

Fatal error: Call to undefined function a_done() on line 13


Create a new paste based on this one


Comments: