title: Oneliner to prepend or append a string to another
body: <p>Not a vital question, just wondering if there is any onliner to do this.</p>
  
  <pre><code>function addString($text, $add, $type = 'prepend') {
     // oneliner here
     return $text;
  }
  
  $text = 'World';
  addString($text, 'Hello ', 'prepend'); // returns 'Hello World'
  addString($text, ' Hello', 'append'); // returns 'World Hello'
  </code></pre>
  
  <p>Any ideas? : )</p>