Pchp.Library.Streams.StreamContext.GetOption C# (CSharp) Method

GetOption() public method

Gets a wrapper-specific option identified by the scheme and the option name.
public GetOption ( string scheme, string option ) : PhpValue
scheme string The target wrapper scheme.
option string The option name.
return Pchp.Core.PhpValue
        public PhpValue GetOption(string scheme, string option)
        {
            var result = PhpValue.Null;

            if (_data != null)
            {
                var options = _data[scheme].ArrayOrNull();
                if (options != null)
                {
                    result = options[option];
                }
            }

            return PhpValue.Null;
        }
    }