note 78121 deleted from function.preg-replace by danbrown
| From: | danbrown@php.net | Date: | Fri, 28 Nov 2008 19:50:53 +0000 |
| Subject: | note 78121 deleted from function.preg-replace by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-147148@lists.php.net to get a copy of this message | ||
Note Submitter: matt
----
at below post:
<?php
$template = "Price: #price#";
$price = '$5';
print "Price: $price\n";
$res = preg_replace("/#price#/", $price, $template);
print "From template: -> $res\n";
?>