note 20373 added to function.str-repeat

From: Date: Mon, 01 Apr 2002 20:56:10 +0000
Subject: note 20373 added to function.str-repeat
Groups: php.notes 
Request: Send a blank email to php-notes+get-28471@lists.php.net to get a copy of this message
heres a (function) handy use of str_repeat, to mask passwords :) $password = "password"; function mask_passwd($passwd) { return str_repeat("*", strlen($passwd)); } echo "So and so's password: " . mask_passwd($passwd); -- http://www.php.net/manual/en/function.str-repeat.php http://master.php.net/manage/user-notes.php?action=edit+20373 http://master.php.net/manage/user-notes.php?action=delete+20373 http://master.php.net/manage/user-notes.php?action=reject+20373

« previous php.notes (#28471) next »