public function getMessageLines($text)
    {
        $message = $text;
        $wrapLength = 40;
        // wrap the message to max chars
        $message = wordwrap($message, $wrapLength - 2);
        // split into array of lines
        return explode("\n", $message);
    }
public function getMessageLines($text)
    {
        $message = $text;
        $wrapLength = 40;
        // wrap the message to max chars
        $message = wordwrap($message, $wrapLength - 2);
        // split into array of lines
        return explode("\n", $message);
    }
public function getMessageLines ( $ text ) { $ message = $ text ; $ wrapLength = 40 ; // wrap the message to max chars $ message = wordwrap ( $ message , $ wrapLength - 2 ) ; // split into array of lines return explode ( "\n" , $ message ) ; }
Obtain the message as array wrapping the text
@param $text
@return array
Obtain the message as array wrapping the text