stream_get_line()
function stream_get_line(resource $stream, int $length, string $ending = ''): string
Gets line from stream resource up to a given delimiter.
Parameters:
$stream(resource)$length(int)$ending(string), default'', optional
Returns: string
Availability
- Compiled (AOT): supported by the Elephc code generator.
eval()(magician interpreter): supported — declarative interpreter builtin (crates/elephc-magician/src/interpreter/builtins/filesystem/stream_get_line.rs).
No examples yet — check examples/ and showcases/ for usage patterns.
Internals
For how stream_get_line is implemented in the compiler, see the internals page.