1

I have this html code:

<div class="moviefilm">
SURSA 1
</div>

<div class="moviefilm">
SURSA 2
</div>

<div class="moviefilm">
SURSA 3
</div>

I want a php script to extract content of each and push him to php array to use with function

foreach ($divs as $div) {
//PHP CODE
}

1 Answers1

0

you can do this with javascript getElementsByClassName then pass it to php by AJAX or something

Ehab Eldeeb
  • 722
  • 4
  • 12