note 76106 added to function.str-repeat

From: Date: Sat, 30 Jun 2007 10:09:15 +0000
Subject: note 76106 added to function.str-repeat
Groups: php.notes 
Request: Send a blank email to php-notes+get-128109@lists.php.net to get a copy of this message
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)); ?> ---- Server IP: 85.111.6.23 Probable Submitter: 85.111.6.6 (proxied: 195.174.108.81) ---- Manual Page -- http://www.php.net/manual/en/function.str-repeat.php Edit -- https://master.php.net/note/edit/76106 Del: integrated -- https://master.php.net/note/delete/76106/integrated Del: useless -- https://master.php.net/note/delete/76106/useless Del: bad code -- https://master.php.net/note/delete/76106/bad+code Del: spam -- https://master.php.net/note/delete/76106/spam Del: non-english -- https://master.php.net/note/delete/76106/non-english Del: in docs -- https://master.php.net/note/delete/76106/in+docs Del: other reasons-- https://master.php.net/note/delete/76106 Reject -- https://master.php.net/note/reject/76106 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#128109) next »