How can i split an incoming data in arduino?
Scanning string formatted data can be done with sscanf (docs). It takes format strings just like printf() does, but instead of printing formatted data, it parses formatted data into the given variables.

For example,

String input = "180 0 0 0 90 90 0";
//parse input (6 integers)
int servoPositions[6];
int numScanned = sscanf (input.c_str(),"%d %d %d %d %d %d", 
    &amp;servoPositions[0], &amp;servoPositions[1],&amp;servoPositions[2],
    &amp;servoPositions[3], &amp;servoPositions[4],&amp;servoPositions[5]);

//print positions again
Serial.println("Parsed servo positions:");

for(int i=0; i &lt; 6; i++) {
    Serial.print("position ");
    Serial.print(i);
    Serial.print(": ");
    Serial.println(servoPositions[i]);
}


Outputs

Parsed servo positions:
position 0: 180
position 1: 0
position 2: 0
position 3: 0
position 4: 90
position 5: 90