- Home /
Answer by ina · Dec 25, 2010 at 04:57 PM
Here's a basic function that takes a string separated by ;
and converts each element between ;
into an array element.
// example WWW return data format: a;b;c;d;e;f; (etc, ;-separated)
function wwwStr2Array(str:String){ var arrData:Array; // array to store your data in arrData = new Array();
var arr:Array;
arr = new Array();
arr = str.Split(";"[0]); // each field separated by ;
var i:int;
for(i=0;i<arr.length;i++){
arrData[i]=arr[i];
}
}
Your answer
![](https://koobas.hobune.stream/wayback/20220613092431im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Putting array nr. 1 in a string ;o? 2 Answers
wwwform send an array the right way! 0 Answers
Get array from a php, put it into an array in Unity? 1 Answer
WWW and php issues 1 Answer
How to grab POST image data from WWWForm on server? 1 Answer