strlen reports a length of 6 even though it is empty.
Also if(empty) reports true.
What is happening
[PHP]echo '<br>'.$this->message;
trim($this->message);
echo '<br>'.$this->message;
if(empty($this->message))
return;
$this->message .= '<br>strlen '.strlen($this->message).
' '.$this->message;
echo '<br>'.$this->message;[/PHP]
The web page source code is
Also if(empty) reports true.
What is happening
[PHP]echo '<br>'.$this->message;
trim($this->message);
echo '<br>'.$this->message;
if(empty($this->message))
return;
$this->message .= '<br>strlen '.strlen($this->message).
' '.$this->message;
echo '<br>'.$this->message;[/PHP]
The web page source code is
Code:
<br><br> <br><br> <br>strlen 6 <br>
Comment