class Inspector (View source)

Methods

static bool
caller(int $level, array $info, int $limit = 100)

Get caller from backtrace php scripts

static bool
evalSource(string $message, string $file, int $line)

Identifies the file and line from where the failed eval() was executed

static string
type(mixed $value)

Gets the type name of a variable with get_debug_type() when available; otherwise, falls back to gettype()

static bool
regex(string $expression, string|null $errorMessage, int|null $errorCode)

Utility to check if a regex expression contains issues

Details

static bool caller(int $level, array $info, int $limit = 100)

Get caller from backtrace php scripts

Parameters

int $level
array $info
int $limit

Return Value

bool

static bool evalSource(string $message, string $file, int $line)

Identifies the file and line from where the failed eval() was executed

Parameters

string $message
string $file
int $line

Return Value

bool

static string type(mixed $value)

Gets the type name of a variable with get_debug_type() when available; otherwise, falls back to gettype()

Parameters

mixed $value

Return Value

string

static bool regex(string $expression, string|null $errorMessage, int|null $errorCode)

Utility to check if a regex expression contains issues

Parameters

string $expression
string|null $errorMessage
int|null $errorCode

Return Value

bool