note 76106 deleted from function.str-repeat by sobak

From: Date: Sat, 10 Dec 2016 11:19:25 +0000
Subject: note 76106 deleted from function.str-repeat by sobak
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-208433@lists.php.net to get a copy of this message
Note Submitter: Alper Kaya ---- If you want to hide a part of your password, you can use this code. It's very simple and might be required in your user management panel. <?php $password = "12345abcdef"; $visibleLength = 4; // 4 chars from the beginning echo substr($password,0,4).str_repeat("*", (strlen($password)-$visibleLength)); ?>

« previous php.notes (#208433) next »