pr0blems / phpquery

Automatically exported from code.google.com/p/phpquery
0 stars 0 forks source link

pq("div")->html() to return output in arrays #163

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Is it possible to add a feature that will return the found selectors in an 
array?

eg.

--html--
<div>This is one</div>
<div>This is two</div>
<div>This is three</div>

--php--
print_r(pq("div")->html());

--suggested output--
Array
(
    [0] => This is one
    [1] => This is two
    [2] => This is three
)

--current output--
This is oneThis is twoThis is three

Original issue reported on code.google.com by magnus.esterhuizen@gmail.com on 30 Dec 2010 at 1:14