I have made a function which puts the contents of an array into a string:
function arrayToStr(%ar)
{
%str = "";
for (%i = 0; %i < %ar.length; %i++)
{
%str = %str @ %ar[%i];
}
return %str;
}
After that code is executed, when I type this into the console:
$testAr[0] = "bl";
$testAr[1] = "ah";
echo(arrayToStr($testAr));
...it echoes a blank string. What's wrong with my script?