config.php$_LANG['new_arrival'] = 'New Arrivals';$_LANG['hot_products'] = 'Hot Products';$_LANG['group_deals'] = 'Group Deals';$_LANG['specials'] = "Specials";$_LANG['after'] = 'Contact cu\'stomer
| service for |
| order status and |
| other after-sales issues |
| service for |
| order status and |
| other after-sales issues |
回复讨论(解决方案)
想不通,你那都是个数组了可以直接通过键名来取干嘛还用正则!还有你干嘛要通过file_get_contents来取config.php中的数据?你完全可以把那个数组返回然后直接通过数组来操作还方便些
$subject =<<< 'TXT'$_LANG['new_arrival'] = 'New Arrivals';$_LANG['hot_products'] = 'Hot Products';$_LANG['group_deals'] = 'Group Deals';$_LANG['specials'] = "Specials";$_LANG['after'] = 'Contact cu\'stomer
| service for |
| order status and |
| other after-sales issues |
(
[0] => 'New Arrivals'
[1] => 'Hot Products'
[2] => 'Group Deals'
[3] => "Specials"
[4] => 'Contact cu\'stomer
| service for |
| order status and |
| other after-sales issues |
[5] => 'Group Deals'
)
技术高手,CSDN还是蛮多的。
config.php 一般 include 进来读数组取值就行
=\s([''""A-Za-z1-9\s<>\/\\-]*)
=\s*([''""A-Za-z1-9\s<>\/\\-]*)
config.php 一般 include 进来读数组取值就行
嗯。数组是可以直接用。但不是我的问题所在哈。