PHP Doku:: Creates a new Message object - function.sammessage-constructor.html

Verlauf / Chronik / History: (50) anzeigen

Sie sind hier:
Doku-StartseitePHP-HandbuchFunktionsreferenzSonstige DiensteSimple Asynchronous MessagingSAM FunktionenSAMMessage->__construct

Ein Service von Reinhard Neidl - Webprogrammierung.

Verdiene Geld mit Deiner Homepage oder deinem Blog: Setzte eine Textlinkwerbung und bestimme den Preis selber.
Einfach kostenlos anmelden und einen Platz auf Deiner Homepage anbieten.
Make money with your homepage or blog: Set a text link advertising and declare the price.
Register free of charge and offer a place on your homepage.
SAM Funktionen

<<SAMMessage->body

SAMMessage->header>>

SAMMessage->__construct

(PECL sam >= 0.1.0)

SAMMessage->__construct Creates a new Message object

Beschreibung

SAMMessage::__construct ([ mixed $body ] )

Creates a new SAMMessage object optionally specifying a message body.

Parameter-Liste

body

The optional body for the message.

Beispiele

Beispiel #1 Creating a message

<?php

$msg 
= new SAMMessage();

?>

Beispiel #2 Creating a message with a simple text payload

<?php

$msg 
= new SAMMessage('This is a simple text message');

?>


Verdiene Geld mit Deiner Homepage oder deinem Blog: Setzte eine Textlinkwerbung und bestimme den Preis selber.
Einfach kostenlos anmelden und einen Platz auf Deiner Homepage anbieten.
Make money with your homepage or blog: Set a text link advertising and declare the price.
Register free of charge and offer a place on your homepage.
Keine BenutzerBeiträge.
- Beiträge aktualisieren...



PHP Powered Diese Seite bei php.net
The PHP manual text and comments are covered by the Creative Commons Attribution 3.0 License © the PHP Documentation Group - Impressum - mail("TO:Reinhard Neidl",...)