NeatCN(NeatStudio工作室) NeatStudio工作室

测试代码插入

03.12.2010 · Posted in News, 杂项
echo "Hello world .";
function test( $name ){
     return "Hello " . $name ;
}
class nsTest{
    protected $name;
    function __construct(){
        if(func_arg_num() > 0){
             $this->setName( func_arg_get(0));
        }
    }

    public function setName( $name ){
         $this->name = strval( $name );
    }

    public function getName(){
         return $this->name;
    }
}

有人说我写Hello world太短了。所以我写了一个class , 一个function 来测试这个高亮插件。。没有测试,没有注意缩进,毕竟在所见所得编辑器里打代码也是很痛苦的事情

Leave a Reply