如何在php中获取没有类和id的div内容

如何在php中获取没有类和id的div内容,php,html,css,Php,Html,Css,我在php中有一个div(string),我想获取内容 比如说-- 呜呜呜呜 布拉布拉 我想要-- 呜呜呜呜 布拉布拉 对于这类任务,我没有可以使用的div id或class 有用功能: preg_filter — Perform a regular expression search and replace preg_grep — Return array entries that match the pattern preg_last_error — Returns the erro

我在php中有一个div(string),我想获取内容

比如说--


呜呜呜呜
布拉布拉
我想要--


呜呜呜呜
布拉布拉

对于这类任务,我没有可以使用的div id或class

有用功能:

preg_filter — Perform a regular expression search and replace
preg_grep — Return array entries that match the pattern
preg_last_error — Returns the error code of the last PCRE regex execution
preg_match_all — Perform a global regular expression match
preg_match — Perform a regular expression match
preg_quote — Quote regular expression characters
preg_replace_callback — Perform a regular expression search and replace using a callback
preg_replace — Perform a regular expression search and replace
preg_split — Split string by a regular expression

这与PHP有什么关系?你到底为什么要用PHP来做这件事?@Dai我想在这个div下获取数据以供某些用途。@Mr.Alien我想在这个div下获取数据以供某些用途。你不知道div、id或class,但你知道PHP吗?
<div>
     bla bla bla
</div>
     bla bla
preg_filter — Perform a regular expression search and replace
preg_grep — Return array entries that match the pattern
preg_last_error — Returns the error code of the last PCRE regex execution
preg_match_all — Perform a global regular expression match
preg_match — Perform a regular expression match
preg_quote — Quote regular expression characters
preg_replace_callback — Perform a regular expression search and replace using a callback
preg_replace — Perform a regular expression search and replace
preg_split — Split string by a regular expression