php - DOMXpath and get the result

973

I try to get the result of a span tag like this:

The problem, the span class is often names css "AB" into the html code and I want to get the one span tag with the itemprop ratingvalue, only.

<span class="AB" itemprop='ratingValue'>Count</span>



Share solution ↓

Additional Information:

Link To Source
People are also looking for solutions of the problem: using $this when not in object context

Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.


Similar questions

Find the answer in similar questions on our website.

683 get - Trouble getting a value from <a> link - PHP
919 PHP: Variables get redefined when using global?
773 PHP , fgets return full content of file
340 asynchronous - PHP CodeIgniter: How to run processes in the background without getting my whole website stuck
75 php - Sphinx - Sort results in a specific order
103 oop - PHP - set and get method
820 php - Yii2, After Login But not change to Logout. and How to get Id from database after login
33 php - Laravel 5.1 - get current route
692 pdo - Learning php - How to query the database from logged_in.php?
357 php - Getting a specific value from an array

People are also looking for solutions to the problem: file get contents - file_get_contents(): stream does not support seeking PHP

Source

Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.