splitting array problem

guys

i am geting data from php code as
24#24#24.54#24#23#26#24#

My code is

var url = “http://-------------------”;
var hs_get : WWW = new WWW(url);
yield hs_get;

if(hs_get.error)
{
ar4 = hs_get.error;
Debug.Log(" Error Cause :" +hs_get.error);
}
else
{
Debug.Log(“Data Transfered”);
var rr : String = hs_get.text;

var splitString : String[ ] = rr.Split(“#”[0]);

var myname = splitString[0];

var score = new int[splitString.Length - 1];

Debug.Log(splitString.Length);

for (i =0; i< splitString.Length ; i++)
{

Debug.Log(splitString*);*
}
}
when i run this code i getting output as:
24
24.54
23
26
Here the problem i have 7 values from php , when i split by using Split(“#”[0]) it not give the output as repeated values , it only displays the different values
i need output as in array
24
24
24.54
24
23
26
24
i need the same value to be stored in array for graph plotting
pls suggest me some solution
thanks in advance,
Arun

Can you print out the value of “rr” and what was the result of “Debug.Log(splitString.Length)”?

Also, is this the full code, or does it (especially your for loop; the one pasted below) have additional code in it that you removed for this post?

for (i =0; i< splitString.Length ; i++)
{

Debug.Log(splitString[i]);

}

hey i am getting
Debug.Log(splitString.Length); =====8
Debug.Log(rr); ============= 24#24#24.54#24#23#26#24#

this the answer am getting

thanks in advance…!!
The problem is split library splits the values and giving the length , when i am make them to array or display the array it only showing the common values not as the same value returned from database…!!

thanks
arun

Show how you are building your array because it looks like String.Split is performing normally.

Is this the full contents of your for loop?

for (i =0; i< splitString.Length ; i++)
{

Debug.Log(splitString[i]);

}

Or do you have more code in there that you didn’t post?

I have this same problem. Anyone find a solution?

What problem is that? String.Split performs as expected.

–Eric

Not a problem. I had the “collapse” option turned on in the console. First time really encountering that.