PHP

Php code posted by Me :)
created at 14 Aug 23:12, updated at 14 Aug 23:12

Edit | Back
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<?php

class Test {

private static $instance;


private function __construct() {

}

public static function instance() {

   if($instance != null) {
      $instance = new Test();
   }

   return $instance;
}

}


Test::instance();

?>
260 Bytes in 2 ms with coderay