略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: SAMMessage::__construct

2024-05-02

SAMMessage::__construct

(PECL sam >= 0.1.0)

SAMMessage::__construct Creates a new Message object

说明

SAMMessage::__construct ([ mixed $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');

?>
add a note add a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/sammessage.construct.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3