PHP 8.4.26 Released!

Yaf_Response_Abstract::response

(Yaf >=1.0.0)

Yaf_Response_Abstract::response — Send the response

Açıklama

public function Yaf_Response_Abstract::response(): ?bool

Send the response: the headers and all body blocks, in order.

Bağımsız Değişkenler

Bu işlevin bağımsız değişkeni yoktur.

Dönen Değerler

Returns true on success, or null on failure.

Örnekler

Örnek 1 Yaf_Response_Abstract::response() example

<?php
$response = new Yaf_Response_Http();

$response->setBody("Hello")->setBody(" World", "footer");

$response->response();
?>

Yukarıdaki örnek şuna benzer bir çıktı üretir:

Hello World

Ayrıca Bakınız

+add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top