update page now
Laravel Live Japan

Error::getTraceAsString

(PHP 7, PHP 8)

Error::getTraceAsStringObtener la traza de la pila como un string

Descripción

final public Error::getTraceAsString(): string

Devuelve la traza de la pila como un string.

Parámetros

Esta función no contiene ningún parámetro.

Valores devueltos

Devuelve la traza de la pila como un string.

Ejemplos

Ejemplo #1 Ejemplo de Error::getTraceAsString()

<?php
function prueba() {
throw new
Error;
}

try {
prueba();
} catch(
Error $e) {
echo
$e->getTraceAsString();
}
?>

Resultado del ejemplo anterior es similar a:

#0 /home/bjori/tmp/ex.php(7): prueba()
#1 {main}

Ver también

add a note

User Contributed Notes

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

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant