← All docs

IO builtins

Builtins in the IO category.

IO builtins

FunctionSignatureReturns
closedir()(resource $dir_handle): voidvoid
fclose()(resource $stream): boolbool
fdatasync()(resource $stream): boolbool
feof()(resource $stream): boolbool
fflush()(resource $stream): boolbool
fgetc()(resource $stream): mixedmixed
fgetcsv()(resource $stream, int $length = null, string $separator = ','): arrayarray
fgets()(resource $stream): mixedmixed
file()(string $filename): arrayarray
file_get_contents()(string $filename): mixedmixed
file_put_contents()(string $filename, string $data): intint
flock()(resource $stream, int $operation, bool $would_block = null): boolbool
fopen()(string $filename, string $mode, bool $use_include_path = false, mixed $context = null): mixedmixed
fpassthru()(resource $stream): intint
fprintf()(resource $stream, string $format, ...$values): intint
fputcsv()(resource $stream, array $fields, string $separator = ',', string $enclosure = '"'): intint
fread()(resource $stream, int $length): stringstring
fscanf()(resource $stream, string $format, ...$vars): arrayarray
fseek()(resource $stream, int $offset, int $whence = 0): intint
fstat()(resource $stream): mixedmixed
fsync()(resource $stream): boolbool
ftell()(resource $stream): intint
ftruncate()(resource $stream, int $size): boolbool
fwrite()(resource $stream, string $data): intint
gethostbyaddr()(string $ip): mixedmixed
gethostbyname()(string $hostname): stringstring
gethostname()(): stringstring
getprotobyname()(string $protocol): mixedmixed
getprotobynumber()(int $protocol): mixedmixed
getservbyname()(string $service, string $protocol): mixedmixed
getservbyport()(int $port, string $protocol): mixedmixed
hash_file()(string $algo, string $filename, bool $binary = false): mixedmixed
opendir()(string $directory): mixedmixed
readdir()(resource $dir_handle): mixedmixed
rewind()(resource $stream): boolbool
rewinddir()(resource $dir_handle): voidvoid
stream_bucket_make_writeable()(mixed $brigade): mixedmixed
stream_bucket_new()(resource $stream, string $buffer): mixedmixed
stream_context_create()(array $options = null, array $params = null): mixedmixed
stream_context_get_default()(array $options = null): mixedmixed
stream_context_get_options()(resource $context): arrayarray
stream_context_get_params()(resource $context): arrayarray
stream_context_set_default()(array $options): mixedmixed
stream_context_set_option()(resource $context, string $wrapper_or_options, string $option_name = null, mixed $value = null): boolbool
stream_context_set_params()(resource $context, array $params): boolbool
stream_copy_to_stream()(resource $from, resource $to, int $length = null, int $offset = -1): mixedmixed
stream_filter_register()(string $filter_name, string $class): boolbool
stream_filter_remove()(resource $stream_filter): boolbool
stream_get_contents()(resource $stream, int $length = null, int $offset = -1): mixedmixed
stream_get_filters()(): arrayarray
stream_get_line()(resource $stream, int $length, string $ending = ''): stringstring
stream_get_meta_data()(resource $stream): arrayarray
stream_get_transports()(): arrayarray
stream_get_wrappers()(): arrayarray
stream_is_local()(resource $stream): boolbool
stream_isatty()(resource $stream): boolbool
stream_resolve_include_path()(string $filename): mixedmixed
stream_select()(array $read, array $write, array $except, int $seconds, int $microseconds = 0): intint
stream_set_blocking()(resource $stream, bool $enable): boolbool
stream_set_chunk_size()(resource $stream, int $size): intint
stream_set_read_buffer()(resource $stream, int $size): intint
stream_set_timeout()(resource $stream, int $seconds, int $microseconds = 0): boolbool
stream_set_write_buffer()(resource $stream, int $size): intint
stream_socket_accept()(resource $socket, float $timeout = null, string $peer_name = null): mixedmixed
stream_socket_client()(string $address): mixedmixed
stream_socket_enable_crypto()(resource $stream, bool $enable, int $crypto_method = null, resource $session_stream = null): boolbool
stream_socket_get_name()(resource $socket, bool $remote): mixedmixed
stream_socket_pair()(int $domain, int $type, int $protocol): mixedmixed
stream_socket_recvfrom()(resource $socket, int $length, int $flags = 0, string $address = ''): mixedmixed
stream_socket_sendto()(resource $socket, string $data, int $flags = 0, string $address = ''): mixedmixed
stream_socket_server()(string $address): mixedmixed
stream_socket_shutdown()(resource $stream, int $mode): boolbool
stream_supports_lock()(resource $stream): boolbool
stream_wrapper_register()(string $protocol, string $class, int $flags = 0): boolbool
stream_wrapper_restore()(string $protocol): boolbool
stream_wrapper_unregister()(string $protocol): boolbool
vfprintf()(resource $stream, string $format, array $values): intint