title: How can I replace a variable in a string with the value in PHP?
body: <p>I have string like this in database (the actual string contains 100s of word and 10s of variable):</p>
  
  <pre><code>I am a {$club} fan
  </code></pre>
  
  <p>I echo this string like this:</p>
  
  <pre><code>$club = "Barcelona";
  echo $data_base[0]['body'];
  </code></pre>
  
  <p>My output is <code>I am a {$club} fan</code>. I want <code>I am a Barcelona fan</code>. How can I do this?</p>