Basic C++ question

But i would like to know how to do what i told too, since i was using it really much in PHP.

I'm really struggling (not knowing PHP) to wonder why you would ever want to concatenate two decimal numbers (not digits) in this manner.

well currently im tryng to get the Serial.read() into one variable

I'm guessing you mean you're getting ASCII decimal digits one at a time, and you want to assemble them into a number.
I don't think comes up on the forum less than, ooh, about once a week.
I'm surprised it didn't show up in your searches.

Different ways:

  1. subtract '0' from each decimal digit, and add the result to a running total, suitably scaled by an appropriate power of ten.
  2. Put the digit character into a string, terminate the string, and call "atoi".
  3. as 2) but call scanf.
    and so on.