title: Reading and Replacing Text Using PhpPresentation
body: <p>I want to access a Word from A pptx file in laravel using php presentations
  I tried this but its not working.Kindly provide any input.</p>
  
  <pre><code>$slides = $oPHPPresentation2-&gt;getSlide(7);
  $shape=$slides-&gt;getShapeCollection();
  $paragraphs = $shape-&gt;getParagraphs();
  foreach ($paragraphs as $paragraph_k =&gt; $paragraph_v) 
  {
      $text_elements = $paragraph_v-&gt;getRichTextElements();
      foreach ($text_elements as $text_element_k =&gt; $text_element_v) 
      {
          $text = $text_element_v-&gt;getText();
          $new_text = str_replace('[[recommendations]]','Pranjal', $text);
          $text_element_v-&gt;setText($new_text);
      }
  }
  </code></pre>