title: How can i remove <div> tag from variable without using strip_tags?
body: <p>Here is my code</p>
  
  <pre><code>$str="&lt;div&gt;this is the variable&lt;/div&gt;";
  </code></pre>
  
  <p>I want to remove its html tag <code>&lt;div&gt;</code> without using strip_tags. 
  I need <code>$str="this is the variable"</code>
  Because my server is not working with strip_tags.
  I know it is possible with preg_replace. but i dont know regex. 
  So please suggest me the solution. </p>
  
  <p>Thank you in advance.</p>