Opens a socket and initializes the internal resource handle.
public open ( array $options = [] ) : mixed | ||
$options | array | update the config settings |
return | mixed | Returns `false` if the socket configuration does not contain the `'scheme'` or `'host'` settings, or if configuration fails, otherwise returns a resource stream. Throws exception if there is a network error. |