Introduction to Streams

As we know there are many operations in programming that contain the flow of data. In this flow, we may need to both read and write the data from the object or into the object respectively. Streams generalize the network, data compression, file, and operations. That is, streams provide a centralized platform where the data can flow in a linear method.

On this page, you will find the stream functions and useful information related to them. For these stream functions, no installation is required as it comes with the PHP core language.

FunctionDescription
set_socket_blocking()Deprecated in PHP 5.4, and removed in PHP 7.0. Alias of stream_set_blocking()
stream_bucket_prepend() 
stream_context_create() 
stream_context_get_default() 
stream_context_get_options() 
stream_context_get_params() 
stream_context_set_default() 
stream_context_set_options() 
stream_context_set_params() 
stream_copy_to_stream()Copy data from one stream to another
stream_filter_append()Append filter to a stream
stream_filter_prepend() 
stream_filter_register() 
stream_filter_remove() 
stream_get_contents() 
stream_get_filters() 
stream_get_line() 
stream_get_meta_data() 
stream_get_transports() 
stream_get_wrappers() 
stream_is_local() 
stream_isatty() 
stream_notification_callback() 
stream_register_wrapper()Alias of stream_wrapper_register()
stream_resolve_include_path() 
stream_select() 
stream_set_blocking() 
stream_set_chunk_size() 
stream_set_read_buffer() 
stream_set_timeout() 
stream_set_write_buffer() 
stream_socket_accept() 
stream_socket_client() 
stream_socket_enable_crypto() 
stream_socket_get_name() 
stream_socket_pair() 
stream_socket_recvfrom() 
stream_socket_sendto() 
stream_socket_server() 
stream_socket_shutdown() 
stream_supports_lock() 
stream_wrapper_register() 
stream_wrapper_restore() 
stream_wrapper_unregister()