PHP:flush跟ob_flush
class Number { public $number; public function __construct() { $this->number = rand(1,10);! echo $this->number; echo "
"; ob_flush(); //output_buffer flush(); sleep(2); unset($this); //destruct } //recreat object when each time destruct public function __destruct() { $number = new Number; } } $number = new Number;
沒有留言:
張貼留言
注意:只有此網誌的成員可以留言。