Hello,

What's your php version?
Take at look at:
http://www.php.net/manual/en/function.wordwrap.php
and
http://www.php.net/manual/en/function.strip-tags.php
b.e.
$str='http://www2.snm-hgkz.ch/~rieger/notepool/addnote.php';
echo wordwrap(strip_tags($str),8,'<br>',1);

i you can't use wordwrap(), try:
<?
/* written by [EMAIL PROTECTED] */
function wordwraphtml($string,$length,$endline='<br>',$striphtml=true)
{
if($striphtml)$string=strip_tags($string);
$temp='';
$sublength=strlen($string);
if($sublength<$length)return $string;
while($sublength>$length)
{
        $temp.=substr($string,0,$length).$endline;
        $string=substr($string,$length+1);
        $sublength=strlen($string);
}
return $temp;   
}

$string='<a href="gggg">http://www.startpunt.cc</a>';
echo wordwraphtml($string,8);

?>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to