note 99686 deleted from function.preg-replace by thiago

From: Date: Mon, 30 Aug 2010 21:15:48 +0000
Subject: note 99686 deleted from function.preg-replace by thiago
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-172177@lists.php.net to get a copy of this message
Note Submitter: smantlik at gmail dot com ---- <?php $string = 'adc123'; $pattern = '/[\d]$/'; $replacement = '*'; $result = preg_replace($pattern, $replacement, $string); echo 'adc12*'; ?>

« previous php.notes (#172177) next »