测试代码插入

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

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>