just learning PHP and I have a project I'm looking at which appears to have typos but I'm not sure if they are or not.
I want to know if the output of the two bits of code below is the same.
$this->addSubmitElement($this->_buttons[self::BTN_LIST], self::BTN_LIST);
$this->addSubmitElement($this->_buttons[self::BTN_DRAFT], self::BTN_DRAFT);
and
$this->addSubmitElement($this->_buttons[self::BTN_LIST], self::BTN_LIST)
->addSubmitElement($this->_buttons[self::BTN_DRAFT], self::BTN_DRAFT);
It seems it should be but my project behaves differently depending on which version I have.