mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 15:12:48 +08:00
多维数组的点语法支持数字键值
This commit is contained in:
@@ -793,7 +793,7 @@ class Template
|
|||||||
public function parseVar(&$varStr)
|
public function parseVar(&$varStr)
|
||||||
{
|
{
|
||||||
$varStr = trim($varStr);
|
$varStr = trim($varStr);
|
||||||
if (preg_match_all('/\$[a-zA-Z_](?>\w*)(?:[:\.][a-zA-Z_](?>\w*))+/', $varStr, $matches, PREG_OFFSET_CAPTURE)) {
|
if (preg_match_all('/\$[a-zA-Z_](?>\w*)(?:[:\.][0-9a-zA-Z_](?>\w*))+/', $varStr, $matches, PREG_OFFSET_CAPTURE)) {
|
||||||
static $_varParseList = [];
|
static $_varParseList = [];
|
||||||
while ($matches[0]) {
|
while ($matches[0]) {
|
||||||
$match = array_pop($matches[0]);
|
$match = array_pop($matches[0]);
|
||||||
|
|||||||
Reference in New Issue
Block a user