$region, 'schema' => 'https', 'credentials'=> array( 'secretId' => $secretId , 'secretKey' => $secretKey ) )); try { $result = $cosClient->selectObjectContent(array( 'Bucket' => $bucket, 'Key' => $key, 'Expression' => 'Select * from COSObject s', 'ExpressionType' => 'SQL', 'InputSerialization' => array( 'CompressionType' => 'None', 'CSV' => array( 'FileHeaderInfo' => 'NONE', 'RecordDelimiter' => '\n', 'FieldDelimiter' => ',', 'QuoteEscapeCharacter' => '"', 'Comments' => '#', 'AllowQuotedRecordDelimiter' => 'FALSE' ) ), 'OutputSerialization' => array( 'CSV' => array( 'QuoteField' => 'ASNEEDED', 'RecordDelimiter' => '\n', 'FieldDelimiter' => ',', 'QuoteCharacter' => '"', 'QuoteEscapeCharacter' => '"' ) ), 'RequestProgress' => array( 'Enabled' => 'FALSE' ) )); foreach ($result['Data'] as $data) { print_r($data); } } catch (\Exception $e) { echo($e); }