← All docs

read_exif_data()

Implemented by the compiler-injected image prelude.

read_exif_data()

function read_exif_data(string $filename, ?string $required_sections = null, bool $as_arrays = false, bool $read_thumbnail = false): mixed

Implemented by the compiler-injected image prelude.

Parameters:

  • $filename (string)
  • $required_sections (?string), default null, optional
  • $as_arrays (bool), default false, optional
  • $read_thumbnail (bool), default false, optional

Returns: mixed

Availability

  • Compiled (AOT): supported through the compiler-injected image prelude.
  • eval() (magician interpreter): not available inside eval’d code.
  • Strict PHP mode: hidden — this builtin is an elephc extension with no PHP equivalent, so programs compiled with --strict-php treat the name as nonexistent, in compiled code and inside eval’d code.

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

Internals

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