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