(No version information available, might only be in Git)
Error::__toString — String representation of the error
Returns the string representation of the error.
Această funcție nu are parametri.
Returns the string representation of the error.
Example #1 Error::__toString() example
<?php
try {
throw new Error("Some error message");
} catch(Error $e) {
echo $e;
}
?>
Exemplul de mai sus va afișa ceva similar cu:
Error: Some error message in /home/bjori/tmp/ex.php:3 Stack trace: #0 {main}