Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace App\Test;
- class Named {
- public function test() {
- $this->sendMessage(
- subject: "Teszt",
- body: "Szöveg",
- recipient: "toyou@mailer.test"
- );
- $message = [
- "subject" => "Teszt",
- "body" => "Szöveg",
- "recipient" => "toyou@mailer.test"
- ];
- $this->sendMessage(...$message);
- }
- private function sendMessage($subject, $body, $recipient) {
- dump($subject, $body, $recipient);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement