跳转到主要内容

getfile

Error::getFile

Gets the file in which the error occurred

ENTITY

final

public

string

Error::getFile

Get the name of the file the error occurred.

ENTITY ENTITY

ENTITY

Returns the filename in which the error occurred.

ENTITY

Error::getFile example

<?php
try {
    throw new Error;
} catch(Error $e) {
    echo $e->getFile();
}
?>

    

ENTITY

/home/bjori/tmp/ex.php

ENTITY

Throwable::getFile