title: How to pass a variable/change html from php
body: <p>So I'm using PHP to grab my profile picture from my steam profile and i want to display it on the page is there any way to pass the variable containing the picture to html or edit my html code from PHP???</p>
  
  <p>here is my code</p>
  
  <pre><code>&lt;?php
  
  $pic_path = file_get_contents("http://steamcommunity.com/id/LocalSugarDaddy");
  preg_match('/&lt;div class="playerAvatarAutoSizerInner"&gt;&lt;img src="(.*)" \/&gt;&lt;\/div&gt;/i', $pic_path, $pic);
  
  ?&gt;
  </code></pre>