[ create a new paste ] login | about

Project: example
Link: http://example.codepad.org/XvFDDR9w    [ raw code | output | fork ]

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

class welcome {

  public count;

  function display() {
    return $this->count++;
  }

}

$obj = new welcome;
$obj->display();
$obj->display();


?>


Output:
1
2

Parse error: syntax error, unexpected T_STRING, expecting T_VARIABLE on line 5


Create a new paste based on this one


Comments: