src/Net/HTTP/Request/Receiver.php
public function getFromSource( $key, $source, $strict = FALSE )
	{
		$data	= $this->getAllFromSource( $source );
		if( isset( $data[$key] ) )
			return $data[$key];
		if( !$strict )
			return NULL;
		throw new InvalidArgumentException( 'Invalid key "'.$key.'" in source "'.$source.'"' );
	}
public function getFromSource( $key, $source, $strict = FALSE )
	{
		$data	= $this->getAllFromSource( $source );
		if( isset( $data[$key] ) )
			return $data[$key];
		if( !$strict )
			return NULL;
		throw new InvalidArgumentException( 'Invalid key "'.$key.'" in source "'.$source.'"' );
	}
public function getFromSource ( $ key , $ source , $ strict = FALSE ) { $ data = $ this -> getAllFromSource ( $ source ) ; if ( isset ( $ data [ $ key ] ) ) return $ data [ $ key ] ; if ( ! $ strict ) return NULL ; throw new InvalidArgumentException ( 'Invalid key "' . $ key . '" in source "' . $ source . '"' ) ; }
Returns value or null by its key in a specified source.
@access		public
@param		string		$key		...
@param		string		$source		Source key (not case sensitive) (get,post,files[,session,cookie])
@param		bool		$strict		Flag: throw exception if not set, otherwise return NULL
@throws		InvalidArgumentException if key is not set in source and strict is on
@return		mixed		Value of key in source or NULL if not set
Returns value or null by its key in a specified source .