PHP- get html element value
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/
精彩评论