title: php Adding numbers in a variable and a string
body: <p>I want to be able to add a number from a variable and from a string together. The variable <code>$userinfo-&gt;pilotid</code> will always be different depending on a User ID, for example it maybe <code>1</code>.</p>
  
  <p>I'd like to introduce an offset to this variable, by always adding <code>1000</code> to that number. How can I add the both with this?</p>
  
  <pre><code>Auth::$userinfo-&gt;code . '' . Auth::$userinfo-&gt;pilotid
  </code></pre>
  
  <p>Something along the lines of...</p>
  
  <pre><code>$offset = '1000';
  echo Auth::$userinfo-&gt;code . '' . Auth::$userinfo-&gt;pilotid + $offset
  </code></pre>
  
  <p>Would the above work or am I mixing up things?</p>