[ create a new paste ] login | about

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

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

    class SomeClass {
    
        private static $instance = "TEST";
    
        public static function getInstance() {
    
              echo self::$instance;
    
        }
    
    }

    SomeClass::getInstance();


Output:
1
TEST


Create a new paste based on this one


Comments: