← All docs

ini_set()

Overrides a configuration directive for the rest of the request.

ini_set()

function ini_set(string $option, string|int|float|bool|null $value): string|false

Overrides a configuration directive for the rest of the request.

Parameters:

  • $option (string)
  • $value (string|int|float|bool|null)

Returns: string|false

Availability

  • Compiled (AOT): supported through an injected elephc-PHP prelude.
  • eval() (magician interpreter): not available inside eval’d code.

No examples yet. Check examples/ and showcases/ for usage patterns.

Internals

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