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

TP3.2 introduces phpquery file instance sharing

小云云
Release: 2023-03-20 12:26:01
Original
1783 people have browsed it


##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);
Copy after login
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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template