How to hide an integer DIV based on ID with PHP?

0

How can I hide an entire div using PHP ?

Assuming HTML:

<div id="e_4046058" class="event active">
  <div class="columns">
    <div class="eventInfo">
    <span class="StartTime">16/03/2015 16:00 WET</span>
   <input class="decValue" type="hidden" value="0.00"></div>
    <div id="b_84723885" class="selections active">
</div>
      </div>
           </div>
                   </div>

This DIV is coming from an external site, so I use file_get_contents to get these content.

I'd like some help finding out if you can hide all div id="e_4046058" with all its content.

Assuming I have two div of these:

<div id="div1" class="event active">
  <div class="columns">
    <div class="eventInfo">
    <span class="StartTime">16/03/2015 16:00 WET</span>
   <input class="decValue" type="hidden" value="0.00"></div>
    <div id="b_84723885" class="selections active">
</div>
      </div>
           </div>
                   </div>

 <div id="div2" class="event active">
          <div class="columns">
            <div class="eventInfo">
            <span class="StartTime">16/03/2015 16:00 WET</span>
           <input class="decValue" type="hidden" value="0.00"></div>
            <div id="b_84723885" class="selections active">
        </div>
              </div>
                   </div>
                           </div>

Can you hide all div id="div1" ? What should I use to do this? how much does it work? I do not know any methods I can use to hide a DOMDocument based on div of it. If you have any possibility, I ask for your help in trying to create this module. Thank you!

    
asked by anonymous 16.03.2015 / 05:29

0 answers