- <html>
- <head><title>正则表达式</title></head>
- <body>
- <a href="./">返回列表</a>
- <form action="<? echo $PHP_SELF; ?>" method="post">
- 请输入MM/DD/YYYY格式的日期:
- <input type="text" name="date" value="<? echo $date; ?>">
- <input type="submit" value="转换为YYYY-MM-DD格式">
- </form>
- <?
- if(isset($date)){
- if ( ereg( "([0-9]{1,2})/([0-9]{1,2})/([0-9]{4})", $date, $regs ) ) {
- echo $regs[0] . "的转换结果为:" . $regs[3] . "-" . $regs[1] . "-" . $regs[2];
- } else {
- echo "$date 的日期格式不对!<br>";
- }
- }
- ?>
- </body>
- </html>
波比源码 – 精品源码模版分享 | www.bobi11.com
1. 本站所有资源来源于用户上传和网络,如有侵权请邮件联系站长!
2. 分享目的仅供大家学习和交流,您必须在下载后24小时内删除!
3. 不得使用于非法商业用途,不得违反国家法律。否则后果自负!
4. 本站提供的源码、模板、插件等等其他资源,都不包含技术服务请大家谅解!
5. 如有链接无法下载、失效或广告,请联系管理员处理!
6. 本站资源售价只是赞助,收取费用仅维持本站的日常运营所需!
7. 本站源码并不保证全部能正常使用,仅供有技术基础的人学习研究,请谨慎下载
8. 如遇到加密压缩包,请使用WINRAR解压,如遇到无法解压的请联系管理员!
波比源码 » 正则表达式例子:将MM/DD/YYYY格式的日期转换为YYYY-MM-DD格式
波比源码 » 正则表达式例子:将MM/DD/YYYY格式的日期转换为YYYY-MM-DD格式
purchase levofloxacin without prescription levaquin 250mg pills
tadalis canada buy avana generic order voltaren 100mg generic
tadalafil 40mg canada Buy generic viagra sildenafil 100mg uk
catapres over the counter purchase antivert pills tiotropium bromide 9mcg ca
terazosin pills buy hytrin 5mg order sulfasalazine 500mg online cheap
fosamax us generic alendronate 70mg buy famotidine online cheap
salbutamol 100 mcg for sale oral protonix 40mg viagra australia
revia 50mg oral albenza without prescription abilify 30mg cost
order provera 5mg without prescription order generic medroxyprogesterone 10mg buy cyproheptadine generic
accutane 20mg brand buy amoxil generic purchase deltasone
buy generic piracetam 800 mg brand nootropil sildenafil pills
azithromycin 250mg tablet purchase gabapentin generic neurontin 800mg pills
cialis 10mg drug pfizer cialis viagra overnight delivery
aralen sale olumiant us olumiant for sale online
norvasc 5mg price order viagra 100mg generic buy generic tadalafil 40mg
omeprazole without prescription prilosec oral gambling sites
poker online game slots real money sugarhouse casino online
tadalafil cost buy ciprofloxacin without prescription order ciprofloxacin 500mg generic
simvastatin buy online order valacyclovir without prescription cost propecia 1mg
cephalexin 250mg cost buy keflex pill erythromycin 250mg cost
buy cefuroxime 250mg generic buy careprost pill methocarbamol medication