Test

Php code posted by Hux
created at 08 Apr 20:51, updated at 10 Apr 16:40

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

namespace Hux;

class Test
{
    private $_instance = null;

    public function __construct()
    {
        $this->foo();
    }

    private function foo($var)
    {
        if (null !== $var) {
            echo '<pre>' . print_r($var, true) . '</pre>';
        }
    }
}
298 Bytes in 2 ms with coderay