DivisionByZeroError: Skillnad mellan sidversioner
Hoppa till navigering
Hoppa till sök
Admin (diskussion | bidrag) (Skapade sidan med '=== DivisionByZeroError === (PHP 7, PHP 8) ==== Introduktion ==== '''DivisionByZeroError''' kastas när ett försök görs att dividera ett tal med noll. ==== Klassöversikt ==== <pre> class DivisionByZeroError extends ArithmeticError { →Ärvt från ArithmeticError: protected string $message = ""; private string $string = ""; protected int $code; protected string $file = ""; protected int $line; private array $trace = []; private ?Throwable $previous = null; /*...') |
(Ingen skillnad)
|
Nuvarande version från 29 augusti 2024 kl. 07.54
DivisionByZeroError
(PHP 7, PHP 8)
Introduktion
DivisionByZeroError kastas när ett försök görs att dividera ett tal med noll.
Klassöversikt
class DivisionByZeroError extends ArithmeticError {
/* Ärvt från ArithmeticError */
protected string $message = "";
private string $string = "";
protected int $code;
protected string $file = "";
protected int $line;
private array $trace = [];
private ?Throwable $previous = null;
/* Ärvt från Error */
public Error::__construct(string $message = "", int $code = 0, ?Throwable $previous = null)
final public Error::getMessage(): string
final public Error::getPrevious(): ?Throwable
final public Error::getCode(): int
final public Error::getFile(): string
final public Error::getLine(): int
final public Error::getTrace(): array
final public Error::getTraceAsString(): string
public Error::__toString(): string
private Error::__clone(): void
}
Sidslut
Orginalhemsidan på Engelska : https://www.php.net/manual/en/class.divisionbyzeroerror.php
PHP
Språkreferens
Fördefinierade Undantag
Det här är en maskinöversättning av PHP-manualen till svenska. Om du hittar fel är vi tacksamma om du rapporterar dem via formuläret som finns på
https://www.linux.se/kontaka-linux-se/
Tack till Datorhjälp som har sponsrat Linux.se med webserver.