PHP Code:
temp.keys = getstringkeys("this.sentmail.");
setarray(temp.mostsent, 2); // account & number sent
for (temp.i = 0; temp.i < temp.keys.size(); temp.i ++) {
temp.current = makevar("this.sentmail." @ temp.keys[temp.i]);
if (temp.current > temp.mostsent[1]) {
temp.mostsent[1] = temp.current;
temp.mostsent[0] = temp.keys[temp.i];
}
}
return temp.mostsent[0];
I prefer using makevar() since the other way seems to get funky sometimes.