<?php$amount = '$1,500.00';echo preg_replace('~{amount_val}~', str_replace('$', '\$', $amount), '{amount_val}');?>
Standard input is empty
$1,500.00
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!