file_exists
thermage/thermage
Supported Versions: PHP 4, PHP 5, PHP 7, PHP 8
Checks whether a file or directory exists
file_exists
(
string $filename
):
bool
{
$fontFile
=
__DIR__
.
'/../../fonts/'
.
$value
.
'.json'
;
if (!
file_exists
(
$fontFile
)) {
throw new
Exception
(
"Font
{
$value
}
not found."
);
}
src/Base/Element.php
{
$fontFile
=
$value
.
'.json'
;
if (!
file_exists
(
$fontFile
)) {
throw new
Exception
(
"Font
{
$value
}
not found."
);
}
src/Base/Element.php