I am a new be to start work on zend framwork. i got an example quick start from zend site. when i review the code then i found single and double underscore that is specious to me. below is the code...
1.
protected $_comment;
protected $_created;
protected $_email;
protected $_id;
2.
public function setComment($text)
{
$this->_comment = (string) $text;
return $this;
}
3.
public function __set($name, $value)
{
$method = 'set' . $name;
if (('mapper' == $name) || !method_exists($this, $method)) {
throw new Exception('Invalid guestbook property');
}
$this->$method($value);
}