请教代码报错原因
<?php<br /><br />class test{<br /> public $start;<br /> public $end;<br /> public $arr=array();<br /> public function add(){ <br /> foreach(range($start,$end) as $v){<br /> echo $v;<br /> }<br /> }<br />}<br />$test1=new test();<br />$test1->start=1;<br />$test1->end=100;<br />$test1->add();<br /><br />?>