public function getMessageInformation($id = '')
    {
        $message = [];
        if (is_array($this->messages) == true) {
            foreach($this ->messages as $msg) {
                if ($msg['index'] == $id) {
                    return $msg;
                }
            }
        }
        return $message;
    }
public function getMessageInformation($id = '')
    {
        $message = [];
        if (is_array($this->messages) == true) {
            foreach($this ->messages as $msg) {
                if ($msg['index'] == $id) {
                    return $msg;
                }
            }
        }
        return $message;
    }
public function getMessageInformation ( $ id = '' ) { $ message = [ ] ; if ( is_array ( $ this -> messages ) == true ) { foreach ( $ this -> messages as $ msg ) { if ( $ msg [ 'index' ] == $ id ) { return $ msg ; } } } return $ message ; }
Return message information without reading it from the server

@param string $id

@return mixed
Return message information without reading it from the server