PHP 手册
上一页 |  | 下一页

# SAMMessage->__construct()

(no version information, might be only in CVS)

SAMMessage->__construct() -- Creates a new Message object

## 说明

class SAMMessage {
__construct ( [mixed body] )
}

Creates a new SAMMessage object optionally specifying a message body.

## 参数

`body`

  The optional body for the message.

## 范例

例 1. Creating a message

`<?php $msg = new SAMMessage(); ?>`

例 2. Creating a message with a simple text payload

`<?php $msg = new SAMMessage('This is a simple text message'); ?>`

上一页 | 起始页 | 下一页
SAMMessage->body | 上一级 | SAMMessage->header