title: Can anyone help me by getting The plain text from a div placed in an html file
body: <p>i am a facing an error while using php simple html dom . I am working on my school project to get the plain text from a following div which is situated in an html file</p>
  <pre><code>&lt;div class=&quot;product-detail__TextPrice-sc-1k47nh4-0 hECROB d-flex align-items-center  justify-content-md-start&quot;&gt;
    &lt;div class=&quot;mb-0 weight-bold price&quot;&gt;
      ₹&lt;!-- --&gt; &lt;!-- --&gt;126.00
    &lt;/div&gt;
    &lt;div class=&quot;mrp ml-md-4 ml-lg-2 pd-mrp&quot;&gt;
      ₹ 150.00
    &lt;/div&gt;
    &lt;div class=&quot; w-50 margin-text ml-md-4 ml-lg-2&quot;&gt;
      &lt;span class=&quot;main-slab main-slab-detail&quot;&gt;
        1+pc
      &lt;/span&gt;
      Margin ₹ 24.00 | 16.00%
    &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  <p>This div is present in an html file and we have got only the url to file and we have to first bring the mrp cost of item in div class <code>mrp ml-md-4 ml-lg-2 pd-mrp</code> and cost from class
  <code>mb-0 weight-bold price</code>
  I was using php simple html dom to do the process but i am getting a huge array and I can't figure out what to do now . Can anyone please guide me out ,. The code which i am using is below</p>
  <pre><code>&lt;?php
  include('simple_html_dom.php'); 
  
  $cl=file_get_contents($url);
  
  $html=new simple_html_dom();
  $html-&gt;load($cl);
  $ret = $html-&gt;find('div[class=mrp ml-md-4 ml-lg-2 pd-mrp]');
  
  var_dump($ret);
  
  ?&gt;
  </code></pre>
  <p>Thanks in advance</p>