©
                    本文档使用
                    php中文网手册 发布
                
(PECL sam >= 0.1.0)
SAMMessage::__construct — Creates a new Message object
$body 
  ] )Creates a new SAMMessage object optionally specifying a message body.
body The optional body for the message.
Example #1 Creating a message
  <?php
$msg  = new  SAMMessage ();
 ?>   
Example #2 Creating a message with a simple text payload
  <?php
$msg  = new  SAMMessage ( 'This is a simple text message' );
 ?>