How to read clean data from .docx or .doc file?

$doc_data = file_get_contents($file_url);

it's gives out put like

�T�a�b�l�e� �N�o�r�m�a�l����ö��4Ö� l�4Ö���aö������(�k ôÿÁ�(�� ������0�N�o� �L�i�s�t���������PK�����!�‚Š¼ú��������[Content_Types].xml

how to get clean data like text file??

Recommended Answers

The Word Convert Class does a good job of converting to the different formats that Word can produce (including txt and htm).

Jump to Post

All 4 Replies

firstly convert this file in txt formate than we esaily view in php

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.