concatenate integers to string

I'd like to concatenate an int array (size:8) to a String so that i can print it out to the LCD or even concatenate the intArray into a single integer.

ex.

int array[8] = {0,1,2,3,4,5,6,7};
String toLCD = 0;

toLCD = array[0] & array[1] & ... array[7];

lcd.write(toLCD);

gives output: 01234567

edit: found solution,

//toLCD = readIn[0];
for(l=0;l<8;l++)
{
toLCD += readIn[l];
}
Serial.print("to LCD: ");
Serial.println(toLCD);
//lcd.write(toLCD);

there is no way to do this in one line though as far as i know, which would be simpler than a for loop.

Xenosis:
I'd like to concatenate an int array (size:8) to a String so that i can print it out to the LCD or even concatenate the intArray into a single integer.

ex.

int array[8] = {0,1,2,3,4,5,6,7};

String toLCD = 0;

toLCD = array[0] & array[1] & ... array[7];

lcd.write(toLCD);

gives output: 01234567

The question is strange on many levels. First, your example won't print anything, as the output function treats the first element as ASCII 0, which is the end of string indicator. Even without this, the printed string will be the control characters at the low end of the ASCII table and not the digits.

So instead of trying to solve the question as you ask it, you probably should take a step back and describe what you really try to so and why you think you need a function like this. Your description just sounds as if you try to solve a very common problem in the wrong way.

Korman