public function readString(string $data)
    {
        $this->file_handle = fopen('php://temp', 'rw');
        fwrite($this->file_handle, $data);

        $data = array();
        foreach ($this as $row)
            $data[] = $row;

        return $data;
    }
public function readString(string $data)
    {
        $this->file_handle = fopen('php://temp', 'rw');
        fwrite($this->file_handle, $data);

        $data = array();
        foreach ($this as $row)
            $data[] = $row;

        return $data;
    }
public function readString ( string $ data ) { $ this -> file_handle = fopen ( 'php://temp' , 'rw' ) ; fwrite ( $ this -> file_handle , $ data ) ; $ data = array ( ) ; foreach ( $ this as $ row ) $ data [ ] = $ row ; return $ data ; }
Read CSV from a string. This will write the data to a temporary stream

@param string $data The data to read as CSV
@return array The parsed data
Read CSV from a string . This will write the data to a temporary stream