Dutch PHP Conference 2027

Yaf_Response_Abstract::response

(Yaf >=1.0.0)

Yaf_Response_Abstract::responseSend the response

Descrizione

public function Yaf_Response_Abstract::response(): ?bool

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

Elenco dei parametri

Questa funzione non contiene parametri.

Valori restituiti

Returns true on success, or null on failure.

Esempi

Example #1 Yaf_Response_Abstract::response() example

<?php
$response = new Yaf_Response_Http();

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

$response->response();
?>

Il precedente esempio visualizzerà qualcosa simile a:

Hello World

Vedere anche:

add a note

User Contributed Notes

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