note 10642 added to echo
| From: | julien at cutiservices dot com | Date: | Mon, 15 Jan 2001 02:52:09 +0000 |
| Subject: | note 10642 added to echo | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-9800@lists.php.net to get a copy of this message | ||
Just some fun scrolling effect in console mode and a javascript style scrolling on a web page (only
with IE and refreshing once the page):
function scroll($str)
{
for($i=0;$i<strlen($str);$i++)
{
echo $str[$i];
flush();
usleep(300);
}
}
example:
scroll("php is fun\n");
have a nice day ;)
http://www.php.net/manual/en/function.echo.php