PHP 8.4.22 Released!

HashContext::__debugInfo

(PHP 8 >= 8.4.0)

HashContext::__debugInfoReturns debugging information about the hashing context

Описание

public function HashContext::__debugInfo(): array

This method is not meant to be called directly; it is invoked by var_dump() and related functions when inspecting a HashContext instance.

Список параметров

Сигнатура функции не содержит параметров.

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

Returns an associative array of debugging information. It contains an algo key holding the name of the hashing algorithm in use by the context.

Примеры

Пример #1 HashContext::__debugInfo() example

<?php
$ctx
= hash_init('sha256');
var_dump($ctx);
?>

Результат выполнения приведённого примера:

object(HashContext)#1 (1) {
  ["algo"]=>
  string(6) "sha256"
}

Смотрите также

  • hash_init() - Инициализирует контекст инкрементного хеширования
  • var_dump() - Выводит информацию о переменной
Добавить

Примечания пользователей

Пользователи ещё не добавляли примечания для страницы
To Top