The stream_context_get_options() function returns all options associated with a given stream context. If no options were set when the context was created, the function will return an empty array. Typically, if you simply create a default stream context (e.g., using stream_context_create()) without specifying any options, calling stream_context_get_options() will return an empty array.
stream_context_get_options