
04-06-2010, 09:18 PM
|
|
ǝɔɐɹq ʎןɹnɔ
|
 |
Join Date: Dec 2006
Location: Germany
Posts: 5,153
|
|
Quote:
Originally Posted by Tigairius
PHP Code:
function countAnimations(text) {
temp.anismilies = {":cry:",":confused:",":asleep:","!pissed!",":spam:",":rolleyes:",":p"};
for (temp.a: temp.anismilies) {
temp.count += text.positions(temp.a).size();
}
return temp.count;
}
|
That was soo easy  |
|
|
|