Note Submitter: adiwicaksono at yahoo dot com
----
Hi, how to solve this?
<?
$template = "Price: #price#";
$price = '$5';
print "Price: $pricen";
$res =
preg_replace("/#price#/",$price,$template);
print "From template: -> $resn";
?>
Current result:
Price: $5
>From template: -> Price:
I want this result:
Price: $5
>From template: -> Price: $5
--
PHP Notes Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php
|