<?php

function typ($zin)
{
// de zin typen
$tellen = "0";
$aantal_letters = strlen($zin);
echo str_pad('',4096);
while ($tellen < $aantal_letters) {
echo $zin[$tellen];
flush();
ob_flush();
usleep(50000);
$tellen = $tellen + "1";
}
// 1 seconde wachten
usleep(1000000);
}

typ ("Hoi!<br>");
typ ("Welkom op mijn website!<br>");
typ ("Veel plezier, en graag tot ziens!<br><br>");

?>