1

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

2 Answers 2

2

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

Sign up to request clarification or add additional context in comments.

Comments

1

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.