AS Puzzle

Hi,

I’m trying to unravel a piece of AS that i found, but untill now I’m not very succesfull in understanding it, maybe you guys can make sense of it (for me)

 function str_replace(str, char, replace)
{
 return (str.split(char).join(replace));
}


thanx :hurt: