문제

How do I replicate the following with PHP XMLWriter();

<?qbxml version="12.0"?>

I tried doing the following but could replicate the second ? at the end.

$writer->startElement("?qbxml");  
   $writer->writeAttribute('version', '12.0'); 
도움이 되었습니까?

해결책

According to the manual:

$writer->writePI("qbxml", 'version="12.0"');
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top