[ create a new paste ] login | about

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

PHP, pasted on Oct 1:
1
2
3
4
5
6
7
8
9
10
11
12
<?php

error_reporting(E_ALL | E_STRICT);

class Message {
    public $number = 1;
    public function hello() {
        return "こんにちは";
    }
}

$message1 = Message::hello();


Output:
1
2

Strict Standards: Non-static method Message::hello() should not be called statically in /t.php on line 12


Create a new paste based on this one


Comments: