preg_replace
RewriteCond %{REQUEST_FILENAME} /(.*)-f([0-9]*).html
<?php
$patterns聽=聽array聽(‘/(19|20)(\d{2})-(\d{1,2})-(\d{1,2})/’,
聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽聽‘/^\s*{(\w+)}\s*=/’);
$replace聽=聽array聽(‘\3/\4/\1\2′,聽‘$\1聽=’);
echo聽preg_replace($patterns,聽$replace,聽‘{startDate}聽=聽1999-5-27′);
?>