public static function getStream($data)
    {
        if (!self::$_id) {
            stream_wrapper_register(self::WRAPPER_NAME, __CLASS__);
        }

        return fopen(
            self::WRAPPER_NAME . '://' . ++self::$_id,
            'wb',
            false,
            stream_context_create(array(
                self::WRAPPER_NAME => array(
                    'data' => $data
                )
            ))
        );
    }
public static function getStream($data)
    {
        if (!self::$_id) {
            stream_wrapper_register(self::WRAPPER_NAME, __CLASS__);
        }

        return fopen(
            self::WRAPPER_NAME . '://' . ++self::$_id,
            'wb',
            false,
            stream_context_create(array(
                self::WRAPPER_NAME => array(
                    'data' => $data
                )
            ))
        );
    }
public static function getStream ( $ data ) { if ( ! self :: $ _id ) { stream_wrapper_register ( self :: WRAPPER_NAME , __CLASS__ ) ; } return fopen ( self :: WRAPPER_NAME . '://' . ++ self :: $ _id , 'wb' , false , stream_context_create ( array ( self :: WRAPPER_NAME => array ( 'data' => $ data ) ) ) ) ; }
Create a stream from multiple data sources.

@since 2.1.0

@param array $data  An array of strings and/or streams to combine into
a single stream.

@return resource  A PHP stream.
Create a stream from multiple data sources .