note 90636 deleted from function.preg-replace by danbrown

From: Date: Fri, 01 May 2009 22:11:04 +0000
Subject: note 90636 deleted from function.preg-replace by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-154091@lists.php.net to get a copy of this message
Note Submitter: timgolding_10 at hotmail dot com ---- This is about the simplest example possible. If shows how to echo passwords safely <?php $password="secret"; $safe_pass=preg_replace("(.)", "*", $password); echo $safe_pass; ?> Having said that you passwords will probably be hashed so it's fairly pointless. I just wanted to say a big thank you to arkani at iol dot pt your contribution was very helpful for me.

« previous php.notes (#154091) next »