Forum


Replies: 2   Views: 748
Obtener solo el texto de un wordfragment
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by rmartinez  · 25-05-2022 - 14:49

Buenas tardes.

Existe algún metodo para obtener solo el texto de un WordFragment. Sería como un método opuesto a addText(). Por ejemplo, si el método en cuestión fuera toString(), obtener algo así:

$cell = new WordFragment($docx, 'document');
$cell->addText('Hola Mundo!');
echo $cell->toString(); // -> 'Hola Mundo!'

¿Existe?

Gracias.

Saludos.