开发者

PHP- get html element value

开发者 https://www.devze.com 2023-01-31 15:02 出处:网络
Hi In jQuery, we can use the script开发者_开发知识库 below to get html element value: <p id=\"some\">test</p>

Hi

In jQuery, we can use the script开发者_开发知识库 below to get html element value:

<p id="some">test</p>

$(function() {
    $a = $('#some').text();
});

In PHP, how can we do the same function?

Thanks you


use phpQuery http://code.google.com/p/phpquery/


Or Use PHP Simple HTML DOM Parser http://simplehtmldom.sourceforge.net/

0

精彩评论

暂无评论...
验证码 换一张
取 消