function addspace($string){
$count=0;
$new="";
for($i=0;$string[i];$i++){
if ($string[i]>='a' && $string[i]<='z' || $string[i]>='A' && $string[i]<='Z' || $string[i]>='0' && $string[i]<='9'){
$new.=$string[i];
$count++;
if ($count==5){
$new.=" ";
$count=0;
}
}
}
return $new;
}
i did not tested the function, but i presume it wikll work fine.
Anikin
Hugo Alexandre Dias
Web-Programmer
anikin_jedi@hotmail.com
You got a star cause i was lazy to look in the manual Everyday we learn new functions Anikin
Hugo Alexandre Dias
Web-Programmer
anikin_jedi@hotmail.com
Thanks man - I just happened to have needed the same thing a while ago.
Theres a lot of C/perl and API compatable functions I didnt realise existed, not well documented but well worth a read ______________________________________________________________________
There's no present like the time, they say. - Henry's Cat.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.