【文件属性】:
文件名称:rtf:使用PHP读写RTF文件
文件大小:116KB
文件格式:ZIP
更新时间:2021-05-09 00:20:23
PHP
rtf
读写PHP中的RTF格式文档。
例如:
use Jstewmc \ Rtf ;
// create a document from source
$ document = new Document ( '{\b foo\b0}' );
// let's switch the document's text, "foo", for the text, "bar"...
// create a new text element
$ bar = new Element \ Text ( 'bar' );
// navigate to the "foo" text element and replace it
$ document
-> getRoot () // get the document's root group
-> getFirstChild (