method public

HttpResponse::getCookies()

Класс: \Bitrix\Main\HttpResponse

Сигнатура

public getCookies() : array<string|int, Cookie>

Возвращаемое значение

array<string|int, Cookie>

Как применяется в HttpResponse

HttpResponse::getCookies() — метод класса \Bitrix\Main\HttpResponse модуля «Главный модуль».

Метод объекта: сначала нужен экземпляр HttpResponse.

use Bitrix\Main\HttpResponse;

/** @var HttpResponse $object */
$result = $object->getCookies();
// $result: array<string|int, Cookie>

Другие методы HttpResponse

getCookies() есть и у других классов модуля «Главный модуль»: AjaxJson, Archive, Base, BFile, Component, Component, Extension, File.

Исходный файл: source/main/lib/httpresponse.php:155

Что будем искать? Например,Продвижение