Home >Backend Development >PHP Tutorial >TP3.2 introduces phpquery file instance sharing

TP3.2 introduces phpquery file instance sharing

小云云
小云云Original
2018-02-24 15:19:411814browse


##1.

Place it in the directory of the ThinkPHP framework


Writing in the controller





#How to use it in the controller?

// 导入phpQuery
Vendor('phpQuery.phpQuery');

$doc = \phpQuery::newDocumentHTML($fileContent);
Related recommendations:

There is a problem with phpQuery receiving the WeChat public account link address

Use phpQuery to parse html code like jquery

How to use phpQuery to collect web pages_PHP tutorial

The above is the detailed content of TP3.2 introduces phpquery file instance sharing. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn