我怎么能读取.doc文件并从php中获取特定的单词

I want to read a doc file and get some result from it.

for example: If I have a file - file.doc

and it has something like

Resume

Name: john carter

Address: USA

I am working as a php developer

Then I want something like:

array(
'name' => john carter
'Address' => USA 
)

and also it reject additional info from it.

is it possible?

I have tried phpoffice but I can't get anything related my need.

We can get whole file data easily but I can't recognize whatever I want.

I need is similar like abbyy gives for image to text.

Please anyone help me.

PHP docx reader: Convert MS Word Docx files to text This class can convert MS Word Docx files to text.

It can extract the files from compressed Microsoft Word file in docx format.

The class can parse the document XML file and extract the text that it contains.

Refreance from question : https://stackoverflow.com/a/19503654/5212418