Charles Yeung
Charles Yeung

Reputation: 38825

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

Upvotes: 1

Views: 7245

Answers (2)

Thoman
Thoman

Reputation: 792

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

Upvotes: 1

AmdY
AmdY

Reputation: 1189

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

Upvotes: 2

Related Questions