array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'tr', ), 'this' => array ( 0 => 'hashcontext.debuginfo.php', 1 => 'HashContext::__debugInfo', 2 => 'Returns debugging information about the hashing context', ), 'up' => array ( 0 => 'class.hashcontext.php', 1 => 'HashContext', ), 'prev' => array ( 0 => 'hashcontext.construct.php', 1 => 'HashContext::__construct', ), 'next' => array ( 0 => 'hashcontext.serialize.php', 1 => 'HashContext::__serialize', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/hash/hashcontext/debuginfo.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

HashContext::__debugInfo

(PHP 8 >= 8.4.0)

HashContext::__debugInfoReturns debugging information about the hashing context

Açıklama

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.

Bağımsız Değişkenler

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

Dönen Değerler

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

Örnekler

Örnek 1 HashContext::__debugInfo() example

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

Yukarıdaki örneğin çıktısı:

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

Ayrıca Bakınız