예제 #1
0
파일: sample.php 프로젝트: russpos/ppp
function wrapper()
{
    PPP::import("samples/2");
}
예제 #2
0
파일: classy.php 프로젝트: russpos/ppp
<?php

PPP::import("foo/bar");
class Foo
{
    /*
    Block motha f*****g quotes
    */
    function __construct($foo, $bar)
    {
        $this->foo = $foo;
        $this->say($foo, true);
    }
    private function say($msg, $silly)
    {
        if ($silly) {
            echo $msg;
        } else {
            echo ">>>>{$msg}<<<<";
        }
    }
}
$c = new Foo("hello", 123);