title: Prepend and append to each variable
body: <p>First question here!</p>
  
  <p>I have some PHP variables all in the form of the below, in around 7/8 different files.</p>
  
  <pre><code>$this-&gt;do['string']
  </code></pre>
  
  <p>I wish to make them all into the following:</p>
  
  <pre><code>myfunction($this-&gt;do['string'])
  </code></pre>
  
  <p>I understand I have to use regex and the get file contents function, but I'm unsure where to go from here! Would be very grateful if someone can assist!</p>
  
  <p>Thanks in advance</p>