← All docs

realpath()

Returns canonicalized absolute pathname.

realpath()

function realpath(string $path): mixed

Returns canonicalized absolute pathname.

Parameters:

  • $path (string)

Returns: mixed

No examples yet — check examples/ and showcases/ for usage patterns.

Internals

For how realpath is implemented in the compiler, see the internals page.