title: How to use str_replace in laravel
body: <p><strong>how to use php function str_replace in laravel framework.</strong></p>
  
  <p>My array key names on table columns name so keys have '_' like first_name, last_name etc. i want to remove these '_' in blade file. my requirement is string replace in .blade.php file.</p>
  
  <p>i am trying this php code but it's useless.</p>
  
  <pre><code>&lt;th&gt;{{str_replace('_', ' ', $str)}}&lt;/th&gt;
  </code></pre>
  
  <p>thanks</p>