" xmlns="http://www.w3.org/1999/xhtml"> <? include("phpincludes/titel.php")?> $maxchar){ break; }else{ $newtext=$newtext." ".$split[$i]; $i++; } } $newtext = $newtext . "..."; //put all opened tags into an array preg_match_all('#<([a-z]+)(?: .*)?(?#iU', $newtext, $result); $openedtags = $result[1]; //put all closed tags into an array preg_match_all('##iU', $newtext, $result); $closedtags = $result[1]; $len_opened = count($openedtags); //all tags are closed if (count($closedtags) == $len_opened) { $kortetekst1 = str_replace("

", "", "$newtext"); $kortetekst2 = str_replace("

", "
", "$kortetekst1"); return $kortetekst2; } $openedtags = array_reverse($openedtags); //close tags for ($i=0; $i < $len_opened; $i++) { if (!in_array($openedtags[$i], $closedtags)){ $newtext .= ''; } else { unset($closedtags[array_search($openedtags[$i], $closedtags)]); } } $kortetekst1 = str_replace("

", "", "$newtext"); $kortetekst2 = str_replace("

", "
", "$kortetekst1"); return $kortetekst2 . ""; } ?>

Ik ga op reis en neem mee..

..een adres van Waarslaapje.nl

tekst; } ?>

Tips van Anne:

'' ORDER BY RAND() LIMIT 0,3"; $resultaat = mysql_query($query) or die (mysql_error()); $blokjesvolgorde = 1; while($data = mysql_fetch_object($resultaat)){ ?>
"> id"; $resultaat2 = mysql_query($query2) or die (mysql_error()); while($data2 = mysql_fetch_object($resultaat2)){ $tekst1 = str_replace("

","","$data2->tekst"); $tekst = str_replace("

","
","$tekst1");?>
hoofdfoto)) { ?><? echo $data2->titel;?>

titel;?>

plaats;?>

'280') { echo trimtekst($tekst,280); } else { echo $tekst; }?> Lees verder »

<? echo $data->titel;?>